A kind of initial commit
This commit is contained in:
13
scripts/start_cron.sh
Normal file
13
scripts/start_cron.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
: "${CRON_SCHEDULE:=15 2 * * *}"
|
||||
: "${APP_TIMEZONE:=UTC}"
|
||||
|
||||
export TZ="${TZ:-$APP_TIMEZONE}"
|
||||
|
||||
cat > /tmp/crontab <<EOF
|
||||
${CRON_SCHEDULE} /app/scripts/run_nightly.sh
|
||||
EOF
|
||||
|
||||
exec /usr/local/bin/supercronic /tmp/crontab
|
||||
Reference in New Issue
Block a user