From: Ian Kelling Date: Wed, 16 Feb 2022 23:07:27 +0000 (-0500) Subject: todo comment X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=77c0b307b372824b45e8d3f78f3add554e7229ab;p=distro-setup todo comment --- 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