git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01c941a
)
Eventscripts: source a file specified by $CTDB_RC_LOCAL in functions file.
author
Martin Schwenke
<martin@meltin.net>
Tue, 28 Jun 2011 05:06:10 +0000
(15:06 +1000)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/config/functions
b/config/functions
index 02c111ad43a542a80fcd1bafaa1e5dc2c31ebf34..312234546e9e998ee8d9f2ff328c2543af54cc35 100755
(executable)
--- a/
config/functions
+++ b/
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
}