Docker base images for PHP-FPM
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -z ${PHP_INI_SCAN_DIR+x} ] && [ "$PHP_INI_SCAN_DIR" != "" ] ; then
|
||||
echo "env PHP_INI_SCAN_DIR: $PHP_INI_SCAN_DIR"
|
||||
|
||||
### break down path by : separator
|
||||
IFS=':' read -ra DIRECTORIES <<< "$PHP_INI_SCAN_DIR"
|
||||
|
||||
for DIR in "${DIRECTORIES[@]}"; do
|
||||
### check if there are any php pool configuration files to copy
|
||||
COUNT=`ls -1 $DIR/*.conf 2>/dev/null | wc -l`
|
||||
|
||||
if [ $COUNT != "0" ] ; then
|
||||
cp -f $DIR/*.conf /usr/local/etc/php-fpm.d/
|
||||
fi
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user