From 7306861194343a0bd77dc6f542d7c29b59bda2a4 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 27 Feb 2020 23:06:48 +0100 Subject: [PATCH] Simplify configuration --- install-php-extensions | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index 117620d..0cfeb02 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -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 }