dont use an absolute pathname for the touch command
authorRonnie Sahlberg <sahlberg@ronnie.(none)>
Thu, 7 Feb 2008 04:38:59 +0000 (15:38 +1100)
committerRonnie Sahlberg <sahlberg@ronnie.(none)>
Thu, 7 Feb 2008 04:38:59 +0000 (15:38 +1100)
config/events.d/60.nfs
config/statd-callout

index 294de6bbfea5031efe8843fe2ca80ada4879ba0b..09a09a2a7f3dcb013b79bca9d78d8b08d4e0478e 100755 (executable)
@@ -42,7 +42,7 @@ case $cmd in
 
        # having a list of what IPs we have allows statd to do the right 
        # thing via $CTDB_BASE/statd-callout
-       /bin/touch $CTDB_BASE/state/statd/ip/$ip
+       touch $CTDB_BASE/state/statd/ip/$ip
        exit 0
        ;;
 
index 282484ab6b32c6f1432032cdfa0ea44be8f18414..1e3168d151b952df7356ca2ac344987105ebc594 100755 (executable)
@@ -31,7 +31,7 @@ case "$1" in
         for f in `/bin/ls $CTDB_BASE/state/statd/ip/*`; do
            ip=`basename $f`
            [ -d $STATD_SHARED_DIRECTORY/$ip ] || /bin/mkdir $STATD_SHARED_DIRECTORY/$ip
-           /bin/touch $STATD_SHARED_DIRECTORY/$ip/$2
+           touch $STATD_SHARED_DIRECTORY/$ip/$2
        done
        ;;
   del-client)