From 77c0b307b372824b45e8d3f78f3add554e7229ab Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 16 Feb 2022 18:07:27 -0500 Subject: [PATCH] todo comment --- filesystem/usr/local/bin/myupgrade | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2