mirror of
https://github.com/jbowdre/phpipam-agent-docker.git
synced 2024-11-29 09:52:19 +00:00
Update entrypoint.sh
This commit is contained in:
parent
b45a28a3c9
commit
c0d39790e5
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
[ -z "$CRON_SCHEDULE" ] && CRON_SCHEDULE="1/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 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
|
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
|
chmod 0644 $CRONTAB_FILE
|
||||||
|
|
Loading…
Reference in a new issue