included supercronic
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-06-23 03:06:59 -05:00
parent b4d92128df
commit b16875da29
2 changed files with 18 additions and 7 deletions

View File

@@ -1,10 +1,7 @@
#!/bin/sh
CRON_CONFIG_FILE="/opt/crontab"
# CRON
get_env CRON
CRON="${CRON:-"5 * * * *"}"
echo "${CRON} python /opt/crane.py" > $CRON_CONFIG_FILE
echo "${CRON} python /opt/crane.py" >> "${CRON_CONFIG_FILE}"
exec supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}"
exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE