dnp-harbor/services/php56/docker-php-ext-enable
2024-11-22 11:25:11 +08:00

8 lines
190 B
Bash

#!/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