Merge pull request 'fixed crontab writing jobs multiple times' (#61) from dev-update-crontab into main
All checks were successful
ci / docker (push) Successful in 38s
All checks were successful
ci / docker (push) Successful in 38s
Reviewed-on: #61
This commit was merged in pull request #61.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
CRON_CONFIG_FILE="/etc/crontabs/root"
|
||||
|
||||
echo "${CRON} python /opt/qbit-maid.py" >> $CRON_CONFIG_FILE
|
||||
echo "@reboot python /opt/qbit-maid.py" >> $CRON_CONFIG_FILE
|
||||
grep -qF 'python /opt/qbit-maid.py' $CRON_CONFIG_FILE || echo "${CRON} python /opt/qbit-maid.py" >> $CRON_CONFIG_FILE
|
||||
grep -qF '@reboot' $CRON_CONFIG_FILE || echo "@reboot python /opt/qbit-maid.py" >> $CRON_CONFIG_FILE
|
||||
|
||||
exec crond -f
|
||||
Reference in New Issue
Block a user