Skip to content

Commit

Permalink
add plugs crontab
Browse files Browse the repository at this point in the history
  • Loading branch information
sgohl authored Oct 17, 2024
1 parent 8e9d188 commit 6574d7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wish/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6574d7f

Please sign in to comment.