diff --git a/bin/safeRun.sh b/bin/safeRun.sh index 918f13cc2..b242199b1 100755 --- a/bin/safeRun.sh +++ b/bin/safeRun.sh @@ -47,7 +47,14 @@ while true; do TIME_SINCE_LAST_SEND=$(($TIME_NOW - $LAST_EMAIL_SEND)) if [ "$TIME_SINCE_LAST_SEND" -gt "$TIME_BETWEEN_EMAILS" ]; then - printf "Server was restarted at: $(date)\nThe last 50 lines of the log before the error happens:\n $(tail -n 50 "${LOG}")" | mail -s "Pad Server was restarted" "$EMAIL_ADDRESS" + { + cat <