ctdb-scripts: New internal variable CTDB_SCRIPT_VARDIR
authorMartin Schwenke <martin@meltin.net>
Thu, 13 Aug 2015 05:54:20 +0000 (15:54 +1000)
committerMichael Adam <obnox@samba.org>
Tue, 15 Sep 2015 06:56:21 +0000 (08:56 +0200)
commit3aa11b175ac2a09af292e187929212cfad4e0839
tree1661b20ed4fc4250bd7feef08a6a5e626fa51fbd
parentd064620f51f572b925e901feddb3ed649320fea7
ctdb-scripts: New internal variable CTDB_SCRIPT_VARDIR

Clearly identifies where all state files from scripts should go and
allows that location to be easily changed.  This patch should not
change any behaviour (outside of eventscript unit tests, where a
clearer location is now used).

CTDB_VARDIR should no longer be overridden.  Continue to set
CTDB_DBDIR and similar to override database location in unit tests.

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>
ctdb/config/events.d/00.ctdb
ctdb/config/events.d/README
ctdb/config/functions
ctdb/doc/ctdbd.conf.5.xml
ctdb/tests/eventscripts/scripts/local.sh