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:
parent
82d59bbc8e
commit
d31fbcab4b
@ -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
|
||||
|
@ -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() {
|
||||
|
@ -9,10 +9,6 @@
|
||||
export CTDB_BASE="/etc/ctdb"
|
||||
}
|
||||
|
||||
[ -z "$CTDB_VARDIR" ] && {
|
||||
export CTDB_VARDIR="/var/ctdb"
|
||||
}
|
||||
|
||||
. $CTDB_BASE/functions
|
||||
loadconfig ctdb
|
||||
loadconfig nfs
|
||||
|
Loading…
x
Reference in New Issue
Block a user