diff options
author | Simon Rettberg | 2020-02-26 12:05:04 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-02-26 12:05:04 +0100 |
commit | c09f6e3f1cb9cda6b984e3dd564d2ce6340f51b4 (patch) | |
tree | a6536da04f8500cf0fb53acc907eef12f243e2b0 /satellit_upgrader | |
parent | [SSUS] Make apt noninteractive (diff) | |
download | setup-scripts-c09f6e3f1cb9cda6b984e3dd564d2ce6340f51b4.tar.gz setup-scripts-c09f6e3f1cb9cda6b984e3dd564d2ce6340f51b4.tar.xz setup-scripts-c09f6e3f1cb9cda6b984e3dd564d2ce6340f51b4.zip |
[SSUS] Give 5 seconds time when trying to install an older update
Diffstat (limited to 'satellit_upgrader')
-rw-r--r-- | satellit_upgrader/updater.template.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index 071e6eb..0246f9a 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -208,6 +208,11 @@ if [ -n "$TGZ_SLXADMIN" ]; then : # Negate so NaN triggers else branch else ${DO_UPDATE:-perror} "This update seems to be older than the server version you're currently running" + echo -n "Press Ctrl+C to cancel update..." + for i in 5 4 3 2 1; do + sleep 1 + echo -n "${i}.." + done fi if [ -z "$DO_UPDATE" ]; then echo "If you want to install this update, run again with --update parameter:" |