Fix to disable PHP modules without trailing *.so ext

This commit is contained in:
cytopia
2020-11-13 11:29:04 +01:00
parent 6ecd75d59b
commit cdb09fcbee
2 changed files with 7 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ disable_modules() {
mod="$( echo "${mod}" | xargs )" # trim
# Find all config files that enable that module
files="$( grep -Er "^(zend_)?extension.*(=|/)${mod}\.so" "${cfg_path}" || true )"
files="$( grep -Er "^(zend_)?extension.*(=|/)${mod}(\\.so)?\$" "${cfg_path}" || true )"
if [ -n "${files}" ]; then
while read -r f; do