mirror of
https://github.com/docker-library/php.git
synced 2025-07-28 23:21:13 +00:00
Add ini-name
to ext-install to pass along to ext-enable
Support an absolute path for --ini-name
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user