Eventscripts: source a file specified by $CTDB_RC_LOCAL in functions file.
authorMartin Schwenke <martin@meltin.net>
Tue, 28 Jun 2011 05:06:10 +0000 (15:06 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2011 03:51:32 +0000 (13:51 +1000)
Another unit testing hook.  This is easier than dropping files into
rc.local.d/ and then removing them.

The file has to be executable.

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

index 02c111ad43a542a80fcd1bafaa1e5dc2c31ebf34..312234546e9e998ee8d9f2ff328c2543af54cc35 100755 (executable)
@@ -841,6 +841,10 @@ update_tickles ()
 # load a site local config file
 ########################################################
 
+[ -n "$CTDB_RC_LOCAL" -a -x "$CTDB_RC_LOCAL" ] && {
+       . "$CTDB_RC_LOCAL"
+}
+
 [ -x $CTDB_BASE/rc.local ] && {
        . $CTDB_BASE/rc.local
 }