From 61cd2c0353d338dd0baff7fb6388f961d16898fd Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 31 Jan 2019 15:44:56 +0100 Subject: [PATCH] [PHP-FPM] Patch legacy template lib of NC if exists --- data/Dockerfiles/phpfpm/docker-entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/phpfpm/docker-entrypoint.sh b/data/Dockerfiles/phpfpm/docker-entrypoint.sh index e9c8aac8..c5aef67c 100755 --- a/data/Dockerfiles/phpfpm/docker-entrypoint.sh +++ b/data/Dockerfiles/phpfpm/docker-entrypoint.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e function array_by_comma { local IFS=","; echo "$*"; } @@ -92,4 +91,9 @@ EOF fi fi +# Patching NC files, if any (fixes PHP 7.2.14 + NC 15.0.2) +find /web/ -ipath '*lib/private/legacy/template.php' | while read -r template; do + sed -i "s/\$app \!== ''/\$app \!== '' \&\& \$app \!== 'core'/g" "${template}" +done + exec "$@"