From 7b82381437c360687423a32beb7dcd6812b06ad9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 30 May 2018 10:31:07 +0200 Subject: lib/load-configuration: load constant values from the database later - we need to set up the database access first :-D --- lib/load-configuration | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/load-configuration') 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 -- cgit v1.2.3