update cron schedule string

This commit is contained in:
John Bowdre 2022-01-05 15:18:24 -06:00
parent d5f138e36f
commit b75cad5336

View file

@ -1,7 +1,7 @@
#!/bin/sh
set -e
[ -z "$CRON_SCHEDULE" ] && CRON_SCHEDULE="1/15 * * * *"
[ -z "$CRON_SCHEDULE" ] && CRON_SCHEDULE="*/15 * * * *"
echo "$CRON_SCHEDULE /usr/local/bin/php /opt/phpipam-agent/index.php update > /proc/self/fd/1 2>/proc/self/fd/2" > $CRONTAB_FILE
echo "$CRON_SCHEDULE /usr/local/bin/php /opt/phpipam-agent/index.php discover > /proc/self/fd/1 2>/proc/self/fd/2" >> $CRONTAB_FILE