diff options
| author | Amitay Isaacs <amitay@gmail.com> | 2013-11-26 13:27:46 +1100 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2013-11-27 18:46:17 +0100 |
| commit | 7f20b760ec24ba9e7d2d773425ddf074e9bbf597 (patch) | |
| tree | 66d84b05d4bc5a385ee8eb8702863f328a91f0cd | |
| parent | 7a174985ff55c64b875fd1b1e303d83ef836c077 (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-x | ctdb/config/debug_locks.sh | 5 |
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 ( |
