mirror of
https://github.com/jbowdre/phpipam-agent-docker.git
synced 2024-11-14 12:02:18 +00:00
12 lines
374 B
Bash
12 lines
374 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
[ -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
|
|
chmod 0644 $CRONTAB_FILE
|
|
|
|
exec "$@"
|
|
|
|
|