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

scripts: cron use rwm from PATH

parent a3885eeb
No related branches found
Tags warden-client-2.1
No related merge requests found
Pipeline #8975 passed
......@@ -6,7 +6,7 @@ umask 077
LOGFILE="/var/log/rwm/cron.log.$(date +'%Y-%m-%dT%H:%M:%S%z')"
mkdir -p "$(dirname "$LOGFILE")"
/opt/rwm/rwm.py --config /etc/rwm.conf backup-all 1>"$LOGFILE" 2>&1
rwm --config /etc/rwm.conf backup-all 1>"$LOGFILE" 2>&1
RET=$?
if [ $RET = 0 ]; then
......@@ -19,4 +19,4 @@ cat "$LOGFILE" | mail -E -s "rwm backup-all $RESULT" "$LOGNAME"
find /var/log/rwm -type f -mtime +90 -exec rm {} \;
exit $RET
\ No newline at end of file
exit $RET
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