1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

Set $CTDB_VARDIR in the functions file.

This will be needed when eventscripts that use it are called
externally.

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

(This used to be ctdb commit ebd53b66b0cc66d9d04830781886234167fc2164)
This commit is contained in:
Martin Schwenke 2010-12-15 10:08:16 +11:00
parent 82d59bbc8e
commit d31fbcab4b
3 changed files with 4 additions and 8 deletions

View File

@ -39,10 +39,6 @@ unset TMPDIR
export CTDB_BASE="/etc/ctdb"
}
[ -z "$CTDB_VARDIR" ] && {
export CTDB_VARDIR="/var/ctdb"
}
. $CTDB_BASE/functions
loadconfig network
loadconfig ctdb

View File

@ -2,6 +2,10 @@
PATH=/bin:/usr/bin:/usr/sbin:/sbin:$PATH
[ -z "$CTDB_VARDIR" ] && {
export CTDB_VARDIR="/var/ctdb"
}
#######################################
# pull in a system config file, if any
_loadconfig() {

View File

@ -9,10 +9,6 @@
export CTDB_BASE="/etc/ctdb"
}
[ -z "$CTDB_VARDIR" ] && {
export CTDB_VARDIR="/var/ctdb"
}
. $CTDB_BASE/functions
loadconfig ctdb
loadconfig nfs