fixed crontab writing jobs multiple times #61

Merged
jblu merged 1 commits from dev-update-crontab into main 2026-04-10 16:40:29 -05:00
Showing only changes of commit 4416ebd924 - Show all commits

View File

@@ -2,7 +2,7 @@
CRON_CONFIG_FILE="/etc/crontabs/root" CRON_CONFIG_FILE="/etc/crontabs/root"
echo "${CRON} 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
echo "@reboot 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 exec crond -f