diff options
author | Erich Eckner <git@eckner.net> | 2018-05-30 10:31:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-30 10:31:07 +0200 |
commit | 7b82381437c360687423a32beb7dcd6812b06ad9 (patch) | |
tree | 1a6b0bf9fa11613ca74f5ecd58043a6684f57245 | |
parent | 42c69f3c1bdf6358ad1ab632997d3a12fd11dd4f (diff) | |
download | builder-7b82381437c360687423a32beb7dcd6812b06ad9.tar.xz |
lib/load-configuration: load constant values from the database later - we need to set up the database access first :-D
-rwxr-xr-x | lib/load-configuration | 7 |
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 |