phpipam-agent-docker/entrypoint.sh
2020-10-30 15:16:02 +01:00

10 lines
317 B
Bash

#!/bin/sh
set -e
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 "$@"