From bc550eed2e940a82c6da3139a8b6a95d46ea8109 Mon Sep 17 00:00:00 2001 From: akop Date: Wed, 9 Sep 2020 11:26:31 +0200 Subject: [PATCH] starting cron via entrypoint.sh and env-vars Signed-off-by: akop --- 19.0/fpm-alpine/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/19.0/fpm-alpine/entrypoint.sh b/19.0/fpm-alpine/entrypoint.sh index b9ec5fc5..29245d46 100755 --- a/19.0/fpm-alpine/entrypoint.sh +++ b/19.0/fpm-alpine/entrypoint.sh @@ -185,4 +185,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP fi fi + +if [ "${START_CRON}" = "true" ]; then + sh /cron.sh & +fi + exec "$@"