dnp-harbor/services/php53/docker-php-ext-enable

8 lines
190 B
Plaintext
Raw Permalink Normal View History

2024-10-25 18:15:29 +08:00
#!/bin/bash
ext=$1
line="extension=$ext.so"
ini="/usr/local/etc/php/conf.d/${iniName:-"docker-php-ext-$ext.ini"}"
if ! grep -q "$line" "$ini" 2>/dev/null; then
echo "$line" >> "$ini"
fi