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:
authorErich Eckner <git@eckner.net>2018-05-30 10:31:07 +0200
committerErich Eckner <git@eckner.net>2018-05-30 10:31:07 +0200
commit7b82381437c360687423a32beb7dcd6812b06ad9 (patch)
tree1a6b0bf9fa11613ca74f5ecd58043a6684f57245 /lib/load-configuration
parent42c69f3c1bdf6358ad1ab632997d3a12fd11dd4f (diff)
lib/load-configuration: load constant values from the database later - we need to set up the database access first :-D
Diffstat (limited to 'lib/load-configuration')
-rwxr-xr-xlib/load-configuration7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index 4edea90..5a1fd84 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -26,8 +26,6 @@ if pgrep -x mysqld >/dev/null 2>&1; then
i_am_the_master=true
# shellcheck source=../lib/mysql-functions
. "${base_dir}/lib/mysql-functions"
-
- mysql_retrieve_static_information
else
i_am_the_master=false
fi
@@ -108,6 +106,11 @@ if ! ${i_am_the_master} && \
. "${base_dir}/conf/slave.conf"
fi
+# load static values from the database
+if ${i_am_the_master}; then
+ mysql_retrieve_static_information
+fi
+
# check / set up environment
if [ -z "${build_list_lock_file}" ]; then