Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rwxr-xr-xconf/default.conf10
1 files changed, 8 insertions, 2 deletions
diff --git a/conf/default.conf b/conf/default.conf
index daaf31c..6f3026a 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -18,8 +18,14 @@ work_dir="${base_dir}/work"
# shellcheck source=../lib/common-functions
. "${base_dir}/lib/common-functions"
-# shellcheck source=../lib/mysql-functions
-. "${base_dir}/lib/mysql-functions"
+
+# 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
+ # shellcheck source=../lib/mysql-functions
+ . "${base_dir}/lib/mysql-functions"
+fi
repo_names='packages community archlinux32'
repo_paths__packages="${work_dir}/repos/packages"