For now this loads the global CTDB configuration too. This will
change in the future after things are properly modularised.
This also anticipates a future change where event scripts end with a
".script" suffix.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
rewrite_ctdb_options
}
+load_script_options ()
+{
+ loadconfig
+
+ _options="${0%.script}.options"
+
+ if [ -r "$_options" ] ; then
+ . "$_options"
+ fi
+}
+
##############################################################
die ()