scripts: Remove setting of PATH from functions file
authorMartin Schwenke <martin@meltin.net>
Wed, 16 Oct 2013 23:52:00 +0000 (10:52 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 22 Oct 2013 03:34:04 +0000 (14:34 +1100)
The current setting is inconsistent with settings on most systems,
putting /bin before /sbin.  Use of /usr/local/bin, which may be
required on some systems, is also overridden.  This can make it
difficult to do interactive debugging of script problems.

Rely on the system PATH instead.

If system-specific changes need to be made then this can be done in a
configuration file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/functions

index 7e25d2743d7749755bc06c11f2bd498ddefb142c..2a47b252236eeb0b098ecb86eb913ebe1f1b04be 100755 (executable)
@@ -2,8 +2,6 @@
 
 # utility functions for ctdb event scripts
 
-PATH=/bin:/usr/bin:/usr/sbin:/sbin:$PATH
-
 [ -z "$CTDB_VARDIR" ] && {
     if [ -d "/var/lib/ctdb" ] ; then
        export CTDB_VARDIR="/var/lib/ctdb"