We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb40974 commit d905af9Copy full SHA for d905af9
backup.sh
@@ -9,7 +9,8 @@ if [ "$ONE_SHOOT" == "true" ]; then
9
exit 0
10
else
11
# scheduele backup window
12
- crontab -l | { cat; echo "$BACKUP_WINDOW /backup/functions.sh"; } | crontab -;
13
- cron -f -L 8;
+ touch /var/log/cron.log;
+ crontab -l | { cat; echo "$BACKUP_WINDOW /backup/functions.sh >> /var/log/cron.log 2>&1"; } | crontab -;
14
+ tail -f /var/log/cron.log;
15
exit $?
16
fi
0 commit comments