From 6574d7fb4b300b4e4db5fd187309834ed2971402 Mon Sep 17 00:00:00 2001 From: sgohl <8873017+sgohl@users.noreply.github.com> Date: Thu, 17 Oct 2024 19:01:32 +0200 Subject: [PATCH] add plugs crontab --- wish/docker-entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wish/docker-entrypoint.sh b/wish/docker-entrypoint.sh index 5a9edc6..8cf04d1 100755 --- a/wish/docker-entrypoint.sh +++ b/wish/docker-entrypoint.sh @@ -13,8 +13,11 @@ done mkdir -p ${PATH_SESSION} -## Crontabs app -find /www/app -type f -not -path '*/.*' -mindepth 1 -maxdepth 1 -name "cron*" | xargs cat | crontab - +## Crontabs app + plugs +( + find /www/app -type f -not -path '*/.*' -mindepth 1 -maxdepth 1 -name "cron*" + find /www/app -type f -path "*/plug/*" -not -path '*/.*' -mindepth 3 -maxdepth 3 -name "cron*" +) | xargs cat | grep -v ^$ | sed 's/$/\n/' | crontab - ## Chain app entrypoint source /www/app/docker-entrypoint.sh