Add ini-name to ext-install to pass along to ext-enable

Support an absolute path for --ini-name
This commit is contained in:
Joe Ferguson
2020-06-02 10:41:14 -07:00
parent a3cf31c902
commit a041c4250b
78 changed files with 546 additions and 156 deletions

View File

@ -103,7 +103,15 @@ for module in $modules; do
continue
fi
ini="$PHP_INI_DIR/conf.d/${iniName:-"docker-php-ext-$ext.ini"}"
case "$iniName" in
/*)
# allow an absolute path
ini="$iniName"
;;
*)
ini="$PHP_INI_DIR/conf.d/${iniName:-"docker-php-ext-$ext.ini"}"
;;
esac
if ! grep -q "$line" "$ini" 2>/dev/null; then
echo "$line" >> "$ini"
fi