Auto-upgrade: Better reflect reboot in email subject
This commit is contained in:
parent
dd27fdf796
commit
bed4760a85
|
@ -96,7 +96,6 @@ in
|
||||||
)"
|
)"
|
||||||
echo "$version_comparison"
|
echo "$version_comparison"
|
||||||
send_email=yes
|
send_email=yes
|
||||||
email_subject="$email_subject, reboot required"
|
|
||||||
email_body="$(cat <<-EOF
|
email_body="$(cat <<-EOF
|
||||||
$email_body
|
$email_body
|
||||||
|
|
||||||
|
@ -111,8 +110,10 @@ in
|
||||||
email_body="$(printf "%s\n%s" "$email_body" "The system will reboot now.")"
|
email_body="$(printf "%s\n%s" "$email_body" "The system will reboot now.")"
|
||||||
do_reboot="yes"
|
do_reboot="yes"
|
||||||
activate_configuration="yes"
|
activate_configuration="yes"
|
||||||
|
email_subject="$email_subject, system will reboot"
|
||||||
else
|
else
|
||||||
email_body="$(printf "%s\n%s" "$email_body" "The upgraded configuration will be activated on the next reboot.")"
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue