diff options
author | Erich Eckner <git@eckner.net> | 2020-10-25 06:52:06 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-10-25 06:52:06 +0100 |
commit | d0fe3e2fca791f518def59c0c8d53f4bd669ebd6 (patch) | |
tree | a6f02cd5dad63322f87a459d14e8a2d3b18ba34b | |
parent | cff4f40d954a5884b4977ecbf583103e18769dfc (diff) | |
download | update-all-d0fe3e2fca791f518def59c0c8d53f4bd669ebd6.tar.xz |
update-me.in: hostname -> uname -n
-rw-r--r-- | update-me.in | 12 |
1 files 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 ] |