phpipam-agent-docker/entrypoint.sh

10 lines
187 B
Bash
Raw Normal View History

2020-10-29 17:09:23 +00:00
#!/bin/bash
set -e
2020-10-29 17:15:52 +00:00
echo "$CRON_SCHEDULE /usr/local/bin/php /opt/phpipam-agent/index.php update > /proc/self/fd/1 2>/proc/self/fd/2" > $CRONTAB_FILE
2020-10-29 17:09:23 +00:00
chmod 0644 $CRONTAB_FILE
exec "$@"