Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-21 10:41:09 +0200
committerErich Eckner <git@eckner.net>2018-06-21 10:41:09 +0200
commit028126708e6a532a807de81bd933af1f19b00eeb (patch)
tree928ac7a461739bdf6be5cc5ce44bea7432beab94
parentb7767060b316c9fbe6254714e14e92d60e405c57 (diff)
lib/load-configuration: hostname decides wether we are the master or a slave - not if mysqld is running
-rwxr-xr-xlib/load-configuration2
1 files changed, 1 insertions, 1 deletions
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"