aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker/run_cron.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-30 11:59:44 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-30 11:59:44 +0200
commiteb92461e54948ce9b24efaeba16934a825f962f0 (patch)
treef5d90f5e1dab82a49f97b60010b0ce9505457afa /docker/run_cron.sh
parentt/i/docker: always spawn ssh-agent (diff)
downloadcgitize-eb92461e54948ce9b24efaeba16934a825f962f0.tar.gz
cgitize-eb92461e54948ce9b24efaeba16934a825f962f0.zip
docker: add SCHEDULE=minutely support to run_cron.sh
Diffstat (limited to 'docker/run_cron.sh')
-rwxr-xr-xdocker/run_cron.sh11
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"
;;