Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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