summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-packages2
-rwxr-xr-xbin/systemd-email2
-rwxr-xr-xlib/load-configuration2
-rwxr-xr-xlib/mysql-functions2
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 04eb425..d73a440 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -1063,7 +1063,7 @@ while [ "${count}" -ne 0 ] && \
if ${upload_to_build_master}; then
printf '%s@%s\n' \
"$(whoami)" \
- "$(hostname)" >> \
+ "$(uname -n)" >> \
"${log}"
gzip "${log}"
else
diff --git a/bin/systemd-email b/bin/systemd-email
index 8444758..4489c8d 100755
--- a/bin/systemd-email
+++ b/bin/systemd-email
@@ -10,7 +10,7 @@ fi
printf 'To: archlinux32-logs@eckner.net\n'
printf 'From: systemd <%s@%s>\n' \
"$(whoami)" \
- "$(hostname)"
+ "$(uname -n)"
printf 'Subject: %s\n' \
"$1"
printf 'Content-Transfer-Encoding: 8bit\n'
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}$(