diff options
author | Daniel Hansson <github@hanssonit.se> | 2018-10-15 23:04:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 23:04:27 +0300 |
commit | d66d5cfa79e01ba5fa1466b84b14c2e6892a8fbd (patch) | |
tree | 4a998150b2a5fb164899f48202e3e6b38bec1c86 /nextcloud_update.sh | |
parent | 1a2b7727ea6ba761b597d0ef716fc59784f24baa (diff) |
add countdown (#691)14.0.3
Diffstat (limited to 'nextcloud_update.sh')
-rw-r--r-- | nextcloud_update.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 04a7c207..7e8a86de 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -173,9 +173,7 @@ else rm -f "$STABLEVERSION.tar.bz2" fi -echo "Backing up files and upgrading to Nextcloud $NCVERSION in 10 seconds..." -echo "Press CTRL+C to abort." -sleep 10 +countdown "Backing up files and upgrading to Nextcloud $NCVERSION in 10 seconds... Press CTRL+C to abort." "10" # Stop Apache2 check_command service apache2 stop @@ -313,7 +311,7 @@ then echo printf "${Green}All files are backed up.${Color_Off}\n" occ_command maintenance:mode --on - echo "Removing old Nextcloud instance in 5 seconds..." && sleep 5 + countdown "Removing old Nextcloud instance in 5 seconds..." "5" rm -rf $NCPATH tar -xjf "$HTML/$STABLEVERSION.tar.bz2" -C "$HTML" rm "$HTML/$STABLEVERSION.tar.bz2" |