diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-30 11:59:44 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-30 11:59:44 +0200 |
commit | eb92461e54948ce9b24efaeba16934a825f962f0 (patch) | |
tree | f5d90f5e1dab82a49f97b60010b0ce9505457afa /docker/run_cron.sh | |
parent | t/i/docker: always spawn ssh-agent (diff) | |
download | cgitize-eb92461e54948ce9b24efaeba16934a825f962f0.tar.gz cgitize-eb92461e54948ce9b24efaeba16934a825f962f0.zip |
docker: add SCHEDULE=minutely support to run_cron.sh
Diffstat (limited to 'docker/run_cron.sh')
-rwxr-xr-x | docker/run_cron.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docker/run_cron.sh b/docker/run_cron.sh index db7ae26..c09ba95 100755 --- a/docker/run_cron.sh +++ b/docker/run_cron.sh @@ -12,11 +12,12 @@ schedule_to_cron() { local schedule for schedule; do case "$schedule" in - 15min) echo '*/15 * * * *' ;; - hourly) echo '0 * * * *' ;; - daily) echo '0 0 * * *' ;; - weekly) echo '0 0 * * 1' ;; - monthly) echo '0 0 1 * *' ;; + minutely) echo '* * * * *' ;; + 15min) echo '*/15 * * * *' ;; + hourly) echo '0 * * * *' ;; + daily) echo '0 0 * * *' ;; + weekly) echo '0 0 * * 1' ;; + monthly) echo '0 0 1 * *' ;; *) echo "$schedule" ;; |