iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ef544
)
todo comment
author
Ian Kelling
<ian@iankelling.org>
Wed, 16 Feb 2022 23:07:27 +0000
(18:07 -0500)
committer
Ian Kelling
<ian@iankelling.org>
Wed, 16 Feb 2022 23:07:27 +0000
(18:07 -0500)
filesystem/usr/local/bin/myupgrade
patch
|
blob
|
history
diff --git
a/filesystem/usr/local/bin/myupgrade
b/filesystem/usr/local/bin/myupgrade
index ee1890f4415b72a42840d85eebdd3587d0718731..7be700124f79cf8c50c741803d4d0ce0571ad315 100755
(executable)
--- a/
filesystem/usr/local/bin/myupgrade
+++ b/
filesystem/usr/local/bin/myupgrade
@@
-38,6
+38,10
@@
myreboot() {
}
+# TODO: executed from cron, this doesnt sent an email when we reboot,
+# because rebooting from the script stops the ability to send email.
+# We should figure some workaround.
+
if ! out=$(/sbin/needrestart -p 2>&1); then
e "$out"
if [[ $HOSTNAME != "$MAIL_HOST" ]]; then