Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-24 18:58:59 +0100
committerErich Eckner <git@eckner.net>2021-03-24 18:58:59 +0100
commitf07c99d4f532cc02e1a285a701f580bb34900e37 (patch)
tree26c379eb2982d704d31795a0949727683b231b4b
parente7c1e50550978d408706488d36e75ced43d173b6 (diff)
`hostname` -> `uname -n`
-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}$(