Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/load-configuration
diff options
context:
space:
mode:
Diffstat (limited to 'lib/load-configuration')
-rwxr-xr-xlib/load-configuration14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index 22b6608..ca1a713 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -141,21 +141,23 @@ fi
# possibly pull in custom modifications
-if [ -r "${base_dir}/conf/common.conf" ]; then
+conf_dir="${base_dir}/conf"
+
+if [ -r "${conf_dir}/common.conf" ]; then
# shellcheck source=/dev/null
- . "${base_dir}/conf/common.conf"
+ . "${conf_dir}/common.conf"
fi
if ${i_am_the_master} && \
- [ -r "${base_dir}/conf/master.conf" ]; then
+ [ -r "${conf_dir}/master.conf" ]; then
# shellcheck source=/dev/null
- . "${base_dir}/conf/master.conf"
+ . "${conf_dir}/master.conf"
fi
if ! ${i_am_the_master} && \
- [ -r "${base_dir}/conf/slave.conf" ]; then
+ [ -r "${conf_dir}/slave.conf" ]; then
# shellcheck source=../conf/slave.conf.example
- . "${base_dir}/conf/slave.conf"
+ . "${conf_dir}/slave.conf"
fi
# check / set up environment