[PHP-FPM] Patch legacy template lib of NC if exists

master
andryyy 2019-01-31 15:44:56 +01:00
parent a1baf2112b
commit 61cd2c0353
1 changed files with 5 additions and 1 deletions

View File

@ -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 "$@"