Skip to content
Snippets Groups Projects
Commit ff669591 authored by Radoslav Bodó's avatar Radoslav Bodó
Browse files

scripts: fix cron mail recipient, USER is not present in default cron environment

parent 79773811
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ else
RESULT="ERROR"
fi
# shellcheck disable=SC2002
cat "$LOGFILE" | mail -E -s "rwm backup-all $RESULT" $USER
cat "$LOGFILE" | mail -E -s "rwm backup-all $RESULT" "$LOGNAME"
find /var/log/rwm -type f -mtime +90 -exec rm {} \;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment