From bed4760a857d877b1072ed271520b3f2ade7f0fa Mon Sep 17 00:00:00 2001 From: fruchti Date: Sun, 5 Mar 2023 10:57:46 +0100 Subject: [PATCH] Auto-upgrade: Better reflect reboot in email subject --- options/auto-upgrade.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/options/auto-upgrade.nix b/options/auto-upgrade.nix index 4861c40..3c14c5b 100644 --- a/options/auto-upgrade.nix +++ b/options/auto-upgrade.nix @@ -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