make 50-cron-config and entrypoint-collector.sh mirrors of each other. This is for ease of maintainability.
related #121pull/262/head
parent
0c908786e0
commit
a35c3bae08
@ -1,5 +1,11 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# Cron runs in its own isolated environment (usually using only /etc/environment )
|
||||||
|
# So when the container starts up, we will do a dump of the runtime environment into a .env file that we
|
||||||
|
# will then source into the crontab file (/etc/cron.d/scrutiny)
|
||||||
|
(set -o posix; export -p) > /env.sh
|
||||||
|
|
||||||
|
# adding ability to customize the cron schedule.
|
||||||
COLLECTOR_CRON_SCHEDULE=${COLLECTOR_CRON_SCHEDULE:-"0 0 * * *"}
|
COLLECTOR_CRON_SCHEDULE=${COLLECTOR_CRON_SCHEDULE:-"0 0 * * *"}
|
||||||
|
|
||||||
# if the cron schedule has been overridden via env variable (eg docker-compose) we should make sure to strip quotes
|
# if the cron schedule has been overridden via env variable (eg docker-compose) we should make sure to strip quotes
|
@ -1,10 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
# Cron runs in its own isolated environment (usually using only /etc/environment )
|
|
||||||
# So when the container starts up, we will do a dump of the runtime environment into a .env file that we
|
|
||||||
# will then source into the crontab file (/etc/cron.d/scrutiny.sh)
|
|
||||||
|
|
||||||
(set -o posix; export -p) > /env.sh
|
|
||||||
|
|
||||||
echo "starting cron"
|
echo "starting cron"
|
||||||
cron -f -L 15
|
cron -f -L 15
|
||||||
|
Loading…
Reference in new issue