Auto-upgrade: Better reflect reboot in email subject

This commit is contained in:
fruchti 2023-03-05 10:57:46 +01:00
parent dd27fdf796
commit bed4760a85

View file

@ -96,7 +96,6 @@ in
)"
echo "$version_comparison"
send_email=yes
email_subject="$email_subject, reboot required"
email_body="$(cat <<-EOF
$email_body
@ -111,8 +110,10 @@ in
email_body="$(printf "%s\n%s" "$email_body" "The system will reboot now.")"
do_reboot="yes"
activate_configuration="yes"
email_subject="$email_subject, system will reboot"
else
email_body="$(printf "%s\n%s" "$email_body" "The upgraded configuration will be activated on the next reboot.")"
email_subject="$email_subject, reboot required"
fi
fi