Simplify configuration

pull/125/head
Michele Locati 2020-02-27 23:06:48 +01:00
parent 4b24eb6110
commit 7306861194
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 2 additions and 4 deletions

View File

@ -1016,10 +1016,8 @@ installModuleFromSource() {
cd - >/dev/null
docker-php-ext-enable "$1"
case "$1" in
snuffleupagus) # otherwise php -m will be empty
printf '%s\n%s\n' 'extension=snuffleupagus.so' \
'sp.configuration_file=/usr/local/etc/php/conf.d/snuffleupagus.rules' \
>/usr/local/etc/php/conf.d/docker-php-ext-snuffleupagus.ini
snuffleupagus)
printf 'sp.configuration_file=%s\n' "$PHP_INI_DIR/conf.d/snuffleupagus.rules" >> "$PHP_INI_DIR/conf.d/docker-php-ext-snuffleupagus.ini"
;;
esac
}