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