diff options
author | Martin Schwenke <martin@meltin.net> | 2012-03-20 16:18:49 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2012-03-22 15:30:27 +1100 |
commit | 4f65737809a4493537d3a27b04f4ae049b493007 (patch) | |
tree | 801f37ac8c8853aadc230399768ffbc81c236519 | |
parent | 6e260553f503da10921cadaec2141cbfe43985e9 (diff) | |
download | samba-4f65737809a4493537d3a27b04f4ae049b493007.tar.gz samba-4f65737809a4493537d3a27b04f4ae049b493007.tar.xz samba-4f65737809a4493537d3a27b04f4ae049b493007.zip |
Eventscripts - 13.per_ip_routing should use dirname not basename for mkdir
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit d034845ecea66b47004bc73f2554914a397b1c9d)
-rwxr-xr-x | ctdb/config/events.d/13.per_ip_routing | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/events.d/13.per_ip_routing b/ctdb/config/events.d/13.per_ip_routing index fcd0026259..24a8162c92 100755 --- a/ctdb/config/events.d/13.per_ip_routing +++ b/ctdb/config/events.d/13.per_ip_routing @@ -84,7 +84,7 @@ ensure_table_id_for_ip () _f="$CTDB_ETCDIR/iproute2/rt_tables" # This file should always exist, but... if [ ! -f "$_f" ] ; then - mkdir -p $(basename "$_f") + mkdir -p $(dirname "$_f") touch "$_f" fi |