diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index 3cb4031e4..cbae3b5ec 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -533,20 +533,14 @@ RUN set -eux; \ echo '; Ensure worker stdout and stderr are sent to the main error log.'; \ echo 'catch_workers_output = yes'; \ echo 'decorate_workers_output = no'; \ -{{ if .version | IN("8.2.30", "8.3.29", "8.4.16", "8.5.1") then "" else ( -}} echo; \ echo '; default listen address for easy override in later php-fpm.d/*.conf files'; \ echo 'listen = 9000'; \ -{{ ) end -}} } | tee php-fpm.d/docker.conf; \ { \ echo '[global]'; \ echo 'daemonize = no'; \ -{{ if .version | IN("8.2.30", "8.3.29", "8.4.16", "8.5.1") then ( -}} - echo; \ - echo '[www]'; \ - echo 'listen = 9000'; \ -{{ ) elif rcVersion | IN("8.2", "8.3", "8.4", "8.5") then ( -}} +{{ if rcVersion | IN("8.2", "8.3", "8.4", "8.5") then ( -}} echo; \ echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; \ echo '[www]'; \