From 71d974131e4fe4df50668bd56e8f581f660e1dc0 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 27 Mar 2025 15:29:06 +0100 Subject: [PATCH] machine_poweroff.sh: fix error sending power-off e-mail. --- machine_poweroff.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machine_poweroff.sh b/machine_poweroff.sh index 50c9dde..ea4a00b 100755 --- a/machine_poweroff.sh +++ b/machine_poweroff.sh @@ -359,8 +359,8 @@ else subject="Power OFF System $(hostname -f).." msg=" Going to power off system '$(hostname -f)' .." - echo -e "To:${_to_address}\n${content_type}\nSubject:$subject\n\n${msg}\n" \ - | /usr/sbin/sendmail -F "Webservice Monitor" -f $from_address $_to_address + echo -e "To:${to_address}\n${content_type}\nSubject:$subject\n\n${msg}\n" \ + | /usr/sbin/sendmail -F "Webservice Monitor" -f $from_address $to_address fi