bin: Improve restart notification email

pull/4072/head
Richard Hansen 2020-05-14 18:15:33 -04:00
parent 98e6ec3517
commit edfe59e84f
1 changed files with 2 additions and 2 deletions

View File

@ -52,11 +52,11 @@ while true; do
{
cat <<EOF
Server was restarted at: ${TIME_FMT}
The last 50 lines of the log before the error happens:
The last 50 lines of the log before the server exited:
EOF
tail -n 50 "${LOG}"
} | mail -s "Pad Server was restarted" "$EMAIL_ADDRESS"
} | mail -s "Etherpad restarted" "$EMAIL_ADDRESS"
LAST_EMAIL_SEND=$TIME_NOW
fi