summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-me.in')
-rw-r--r--update-me.in12
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 ]