diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/load-configuration | 2 | ||||
-rwxr-xr-x | lib/mysql-functions | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/load-configuration b/lib/load-configuration index 991d625..d8a5c09 100755 --- a/lib/load-configuration +++ b/lib/load-configuration @@ -7,7 +7,7 @@ set -e export LANG=C -if [ "$(hostname)" = 'buildmaster.archlinux32.org' ]; then +if [ "$(uname -n)" = 'buildmaster.archlinux32.org' ]; then i_am_the_master=true # abort early if mysqld is not running or kill switch active diff --git a/lib/mysql-functions b/lib/mysql-functions index 0c633c8..17df755 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -78,7 +78,7 @@ mysql_run_query() { # a present query_file means there was an error if [ -f "${query_stdin}" ]; then >&2 printf 'I (%s) could not complete a mysql query:\n' \ - "$(hostname)" + "$(uname -n)" >&2 sed 's/^/mysql< /' "${query_stdin}" >&2 sed 's/^/mysql>2 /' "${query_stderr}" files="${query_stdin} ${query_stdout} ${query_stderr}$( |