From c41d30c92f671e86a10242c67938b456c4cad710 Mon Sep 17 00:00:00 2001 From: cytopia Date: Fri, 10 Aug 2018 09:37:08 +0200 Subject: [PATCH] Add missing return after gathering state of PHP modules to disable --- .../prod/data/docker-entrypoint.d/39-disable-modules.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfiles/prod/data/docker-entrypoint.d/39-disable-modules.sh b/Dockerfiles/prod/data/docker-entrypoint.d/39-disable-modules.sh index 6ddb99e..d8325db 100755 --- a/Dockerfiles/prod/data/docker-entrypoint.d/39-disable-modules.sh +++ b/Dockerfiles/prod/data/docker-entrypoint.d/39-disable-modules.sh @@ -24,10 +24,11 @@ disable_modules() { if [ -z "${mods}" ]; then log "info" "\$${mod_varname} set, but empty. Not disabling any PHP modules." "${debug}" - else - log "info" "Disabling the following PHP modules: ${mods}" "${debug}" + return 0 fi + log "info" "Disabling the following PHP modules: ${mods}" "${debug}" + while read -r mod; do mod="$( echo "${mod}" | xargs )" # trim