ctdb-scripts: Don't load CTDB configuration in onnode
authorMartin Schwenke <martin@meltin.net>
Thu, 5 Apr 2018 06:19:23 +0000 (16:19 +1000)
committerAmitay Isaacs <amitay@samba.org>
Sat, 12 May 2018 04:11:17 +0000 (06:11 +0200)
onnode does not use any configuration options.

Drop sourcing of functions file since the only function used was
loadconfig().

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/onnode

index 6104d615694e3432764872f0eb1426ba919b4006..f94423251a83e50c4381a8bcb5b14f46d47d152d 100755 (executable)
@@ -70,10 +70,6 @@ if [ -z "$CTDB_BASE" ] ; then
     CTDB_BASE="/usr/local/etc/ctdb"
 fi
 
-. "${CTDB_BASE}/functions"
-
-loadconfig
-
 parse_options ()
 {
     # $POSIXLY_CORRECT means that the command passed to onnode can