projects
/
working
/
Evergreen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae632e
)
os-update.sh gets a reboot option
author
Bill Erickson
<berickxx@gmail.com>
Tue, 24 May 2016 15:38:24 +0000
(11:38 -0400)
committer
Bill Erickson
<berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000
(15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/admin-scripts/os-update.sh
patch
|
blob
|
history
diff --git
a/KCLS/admin-scripts/os-update.sh
b/KCLS/admin-scripts/os-update.sh
index
02f3cba
..
7174d66
100755
(executable)
--- 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;