Files
crane/entrypoint.sh
T
jblu 42bcf38fb7
ci / docker (push) Successful in 38s
fixed crontab
2026-04-10 16:54:04 -05:00

8 lines
278 B
Bash

#!/bin/sh
CRON_CONFIG_FILE="/etc/crontabs/root"
grep -qF '${CRON} python /opt/crane.py' $CRON_CONFIG_FILE ||echo "${CRON} python /opt/crane.py" >> $CRON_CONFIG_FILE
grep -qF '@reboot' $CRON_CONFIG_FILE || echo "@reboot python /opt/crane.py" >> $CRON_CONFIG_FILE
exec crond -f