summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-26 12:05:04 +0100
committerSimon Rettberg2020-02-26 12:05:04 +0100
commitc09f6e3f1cb9cda6b984e3dd564d2ce6340f51b4 (patch)
treea6536da04f8500cf0fb53acc907eef12f243e2b0
parent[SSUS] Make apt noninteractive (diff)
downloadsetup-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
-rw-r--r--satellit_upgrader/updater.template.sh5
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:"