summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2011-06-28 15:06:10 +1000
committerMartin Schwenke <martin@meltin.net>2011-08-08 13:51:32 +1000
commit72362e7b564619da86e51d180238f129fda89fbc (patch)
tree411aad7f31b05423ca93394ee8f81664667f6e35
parent2c9c77f6dcf27ef400973174787eaceee8f4b6d6 (diff)
downloadsamba-72362e7b564619da86e51d180238f129fda89fbc.tar.gz
samba-72362e7b564619da86e51d180238f129fda89fbc.tar.xz
samba-72362e7b564619da86e51d180238f129fda89fbc.zip
Eventscripts: source a file specified by $CTDB_RC_LOCAL in functions file.
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> (This used to be ctdb commit b13ac3bdaf326a6cdfd87da9195eb9630806c418)
-rwxr-xr-xctdb/config/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions
index 02c111ad43..312234546e 100755
--- a/ctdb/config/functions
+++ b/ctdb/config/functions
@@ -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
}