phc/entrypoint.sh

10 lines
211 B
Bash
Raw Normal View History

2023-06-16 02:11:08 -05:00
#!/bin/sh
2023-06-19 19:01:44 -05:00
CRON_CONFIG_FILE="/opt/crontab"
2023-06-16 02:11:08 -05:00
2023-06-19 19:01:44 -05:00
# CRON
get_env CRON
CRON="${CRON:-"5 * * * *"}"
2023-06-16 02:11:08 -05:00
2023-06-19 19:01:44 -05:00
echo "${CRON} sh /opt/phc.sh" >> "${CRON_CONFIG_FILE}"
exec supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}"