From 028126708e6a532a807de81bd933af1f19b00eeb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 21 Jun 2018 10:41:09 +0200 Subject: lib/load-configuration: hostname decides wether we are the master or a slave - not if mysqld is running --- lib/load-configuration | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/load-configuration b/lib/load-configuration index 33a5742..80b8de4 100755 --- a/lib/load-configuration +++ b/lib/load-configuration @@ -22,7 +22,7 @@ work_dir="${base_dir}/work" # if mysqld is not running, we're either on a build slave and don't need # lib/mysql-functions or we're on the build master and something is wrong # anyway -if pgrep -x mysqld >/dev/null 2>&1; then +if [ "$(hostname)" = 'buildmaster.archlinux32.org' ]; then i_am_the_master=true # shellcheck source=../lib/mysql-functions . "${base_dir}/lib/mysql-functions" -- cgit v1.2.3-70-g09d2