From d0fe3e2fca791f518def59c0c8d53f4bd669ebd6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 25 Oct 2020 06:52:06 +0100 Subject: update-me.in: hostname -> uname -n --- update-me.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/update-me.in b/update-me.in index f33625f..a2210a4 100644 --- a/update-me.in +++ b/update-me.in @@ -38,7 +38,7 @@ while [ $# -gt 0 ]; do shift done -preCmds=('hostname') +preCmds=('uname -n') cmds=() postCmds=('sync') @@ -90,7 +90,7 @@ opportunity_for_rescue_shell() { if [ -n "${user}" ] && [ "$(whoami)" != "${user}" ]; then chown "${user}" "${safety_file}" fi - >&2 printf '%s: waiting for clearance ...' "$(hostname)" + >&2 printf '%s: waiting for clearance ...' "$(uname -n)" while read -t 0.0001; do : done @@ -109,9 +109,9 @@ opportunity_for_rescue_shell() { exit_or_rescue_shell() { opportunity_for_rescue_shell if [ "$1" -eq 0 ]; then - >&2 printf '%s: Erfolg\n' "$(hostname)" + >&2 printf '%s: Erfolg\n' "$(uname -n)" else - >&2 printf '%s: Fehler\n' "$(hostname)" + >&2 printf '%s: Fehler\n' "$(uname -n)" fi while read -t 0.0001; do : @@ -124,7 +124,7 @@ exit_or_rescue_shell() { } nochmal_versuchen() { - >&2 printf '%s (%s): Fehler - nochmal versuchen?\n' "$(hostname)" "${cmd}" + >&2 printf '%s (%s): Fehler - nochmal versuchen?\n' "$(uname -n)" "${cmd}" while read -t 0.0001; do : done @@ -144,7 +144,7 @@ fi if [ ! "$(whoami)" == "root" ]; then if ! "${hasSudo}"; then - hostname + uname -n err=1 maxCount=3 while [ ${err} -eq 1 ] && [ ${maxCount} -gt 0 ] -- cgit v1.2.3-70-g09d2