X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fusr%2Flocal%2Fbin%2Fmyupgrade;fp=filesystem%2Fusr%2Flocal%2Fbin%2Fmyupgrade;h=7be700124f79cf8c50c741803d4d0ce0571ad315;hb=77c0b307b372824b45e8d3f78f3add554e7229ab;hp=ee1890f4415b72a42840d85eebdd3587d0718731;hpb=c5ef5441cb9193cbc9e27466945bf5daf72fce34;p=distro-setup diff --git a/filesystem/usr/local/bin/myupgrade b/filesystem/usr/local/bin/myupgrade index ee1890f..7be7001 100755 --- 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