1
0
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:
Martin Schwenke 2015-08-17 14:01:40 +10:00 committed by Michael Adam
parent c58d582ffb
commit 014a1eb540
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -2,7 +2,8 @@
DIRNAME=$(dirname $0)
. ${DIRNAME}/../config/functions
CTDB_BASE="${DIRNAME}/../config"
. "${CTDB_BASE}/functions"
SERVICE="test-service"