snuffleupagus: enable .rules

This module uses very strict defaults which block almost everything.
pull/125/head
Konstantin A. Lepikhov 2020-02-27 20:59:35 +01:00
parent 310d89ade2
commit 796d556072
1 changed files with 7 additions and 0 deletions

View File

@ -1012,6 +1012,13 @@ installModuleFromSource() {
make -j$(nproc) install make -j$(nproc) install
cd - >/dev/null cd - >/dev/null
docker-php-ext-enable "$1" 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
;;
esac
} }
# Install a PECL PHP module given its handle # Install a PECL PHP module given its handle