summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-11-26 13:27:46 +1100
committerMichael Adam <obnox@samba.org>2013-11-27 18:46:17 +0100
commit7f20b760ec24ba9e7d2d773425ddf074e9bbf597 (patch)
tree66d84b05d4bc5a385ee8eb8702863f328a91f0cd
parent7a174985ff55c64b875fd1b1e303d83ef836c077 (diff)
ctdb-scripts: Set defaults for CTDB_DBDIR and CTDB_DBDIR_PERSISTENT
If these configuration variables are not defined, then there should a default fallback. This is a workaround till CTDB compile time configuration can be accessed at runtime. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
-rwxr-xr-xctdb/config/debug_locks.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/config/debug_locks.sh b/ctdb/config/debug_locks.sh
index 72a89173d7..8092d93034 100755
--- a/ctdb/config/debug_locks.sh
+++ b/ctdb/config/debug_locks.sh
@@ -12,6 +12,11 @@
. "$CTDB_BASE/functions"
+# Default fallback location for database directories.
+# These can be overwritten from CTDB configuration
+CTDB_DBDIR="${CTDB_VARDIR}"
+CTDB_DBDIR_PERSISTENT="${CTDB_VARDIR}/persistent"
+
loadconfig ctdb
(