From: Bill Erickson Date: Tue, 24 May 2016 15:38:24 +0000 (-0400) Subject: os-update.sh gets a reboot option X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=84d2d8c2b84e5b899404c58ccf643bac5843d25f;p=working%2FEvergreen.git os-update.sh gets a reboot option Signed-off-by: Bill Erickson --- diff --git a/KCLS/admin-scripts/os-update.sh b/KCLS/admin-scripts/os-update.sh index 02f3cba8eb..7174d661a7 100755 --- a/KCLS/admin-scripts/os-update.sh +++ b/KCLS/admin-scripts/os-update.sh @@ -1,6 +1,18 @@ #!/bin/bash # Convenience script for updating packages on debian-based OS'es +DO_REBOOT="" apt-get update; apt-get -y dist-upgrade; apt-get -y autoremove; + +echo "" +echo "--" +echo "Reboot? Type 'yes' to continue. Control-c to exit" +echo "--" + +read DO_REBOOT; + +if [ "$DO_REBOOT" = "yes" ]; then + reboot; +fi;