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` --- bin/build-packages | 2 +- bin/systemd-email | 2 +- lib/load-configuration | 2 +- lib/mysql-functions | 2 +- 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}$( -- cgit v1.2.3-70-g09d2