mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-scripts: CTDB_BASE must be set when including functions file
Also fix an unused test to set CTDB_BASE. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
c58d582ffb
commit
014a1eb540
@ -2,6 +2,11 @@
|
||||
|
||||
# utility functions for ctdb event scripts
|
||||
|
||||
if [ -z "$CTDB_BASE" ] ; then
|
||||
echo 'CTDB_BASE unset in CTDB functions file'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CTDB_VARDIR="/usr/local/var/lib/ctdb"
|
||||
|
||||
# Only (and always) override these variables in test code
|
||||
|
@ -2,7 +2,8 @@
|
||||
|
||||
DIRNAME=$(dirname $0)
|
||||
|
||||
. ${DIRNAME}/../config/functions
|
||||
CTDB_BASE="${DIRNAME}/../config"
|
||||
. "${CTDB_BASE}/functions"
|
||||
|
||||
SERVICE="test-service"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user