machine_poweroff.sh: finished script..

This commit is contained in:
Christoph 2025-03-27 15:04:05 +01:00
parent c3dd3448b8
commit 2d1798ccd9

View File

@ -353,10 +353,14 @@ if $terminal ; then
echo ""
else
echo ""
echo -e " Going to power off the system '$(hostname -f)' .."
echo ""
sleep 5
from_address="power-off@$(hostname -f)"
to_address="root"
content_type='Content-Type: text/plain;\n charset="utf-8"'
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
fi