machine_poweroff.sh: fix error sending power-off e-mail.

This commit is contained in:
Christoph 2025-03-27 15:29:06 +01:00
parent 2d1798ccd9
commit 71d974131e

View File

@ -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