From f07c99d4f532cc02e1a285a701f580bb34900e37 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 24 Mar 2021 18:58:59 +0100 Subject: `hostname` -> `uname -n` --- lib/load-configuration | 2 +- lib/mysql-functions | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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}$( -- cgit v1.2.3