From ef594056d0b741d5240302beeb70b82da56c4e3e Mon Sep 17 00:00:00 2001 From: akop Date: Wed, 9 Sep 2020 11:46:58 +0200 Subject: [PATCH] append to all kinds of entrypoint.sh Signed-off-by: akop --- 19.0/apache/entrypoint.sh | 6 ++++++ 19.0/fpm/entrypoint.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/19.0/apache/entrypoint.sh b/19.0/apache/entrypoint.sh index b9ec5fc5..f4affa81 100755 --- a/19.0/apache/entrypoint.sh +++ b/19.0/apache/entrypoint.sh @@ -185,4 +185,10 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP fi fi +if [ "${START_CRON}" = "true" ]; then + echo "Starting CRON." + sh /cron.sh & +fi + + exec "$@" diff --git a/19.0/fpm/entrypoint.sh b/19.0/fpm/entrypoint.sh index b9ec5fc5..f4affa81 100755 --- a/19.0/fpm/entrypoint.sh +++ b/19.0/fpm/entrypoint.sh @@ -185,4 +185,10 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP fi fi +if [ "${START_CRON}" = "true" ]; then + echo "Starting CRON." + sh /cron.sh & +fi + + exec "$@"