Skip to content

Commit

Permalink
bugfix on populate php conf files
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Braz committed Mar 12, 2019
1 parent 0f42500 commit deb2e93
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/docker-entrypoint.sh
Expand Up @@ -29,6 +29,20 @@ if [ -z "$PHPVERSION" ]; then
PHPVERSION='7.3'
fi

#SORRY FOR THAT =(
if [ -f "/etc/php/fpm/php-fpm.conf" ]; then
$(which cp) -f /etc/php/fpm/php-fpm.conf /etc/php/$PHPVERSION/fpm/php-fpm.conf
fi

if [ -f "/etc/php/fpm/php.ini" ]; then
$(which cp) -f /etc/php/fpm/php.ini /etc/php/$PHPVERSION/fpm/php.ini
fi

if [ -f "/etc/php/fpm/pool.d/www.conf" ]; then
$(which cp) -f /etc/php/fpm/pool.d/www.conf /etc/php/$PHPVERSION/fpm/pool.d/www.conf
fi

#POPULATE ENV
echo > /etc/php/$PHPVERSION/fpm/env.conf
for i in `/usr/bin/env`; do
PARAM=`echo $i |cut -d"=" -f1`
Expand Down

0 comments on commit deb2e93

Please sign in to comment.