From 84d2d8c2b84e5b899404c58ccf643bac5843d25f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 24 May 2016 11:38:24 -0400 Subject: [PATCH] os-update.sh gets a reboot option Signed-off-by: Bill Erickson --- KCLS/admin-scripts/os-update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- 2.11.0