Files
qbit-maid/entrypoint.sh
jblu 4416ebd924
All checks were successful
ci / docker (push) Successful in 41s
fixed crontab writing jobs multiple times
2026-04-10 16:19:36 -05:00

8 lines
283 B
Bash
Executable File

#!/bin/sh
CRON_CONFIG_FILE="/etc/crontabs/root"
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