Skip to content

Commit

Permalink
Wrong command to enable / disable commands with php 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Dyan committed Apr 3, 2018
1 parent 9360e47 commit c55c685
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions 7.0/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ groupmod -g $FPM_GID www-data
chown www-data:www-data /var/log/php

# We'll say that we are by default in dev
php5enmod xdebug
php5enmod xhprof
phpenmod xdebug
phpenmod xhprof
sed -i 's/^display_errors\s*=.*/display_errors = On/g' /etc/php/7.0//fpm/conf.d/30-custom-php.ini
sed -i 's/^max_execution_time\s*=.*/max_execution_time = -1/g' /etc/php/7.0/fpm/conf.d/30-custom-php.ini

# If prod has been set ... "clean"
if [ "$ENVIRONMENT" != "dev" ]; then
php5dismod xdebug
php5dismod xhprof
phpdismod xdebug
phpdismod xhprof
sed -i 's/^display_errors\s*=.*/display_errors = Off/g' /etc/php/7.0/fpm/conf.d/30-custom-php.ini
sed -i 's/^max_execution_time\s*=.*/max_execution_time = 60/g' /etc/php/7.0/fpm/conf.d/30-custom-php.ini
fi
Expand Down
8 changes: 4 additions & 4 deletions 7.1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ groupmod -g $FPM_GID www-data
chown www-data:www-data /var/log/php

# We'll say that we are by default in dev
php5enmod xdebug
php5enmod xhprof
phpenmod xdebug
phpenmod xhprof
sed -i 's/^display_errors\s*=.*/display_errors = On/g' /etc/php/7.1//fpm/conf.d/30-custom-php.ini
sed -i 's/^max_execution_time\s*=.*/max_execution_time = -1/g' /etc/php/7.1/fpm/conf.d/30-custom-php.ini

# If prod has been set ... "clean"
if [ "$ENVIRONMENT" != "dev" ]; then
php5dismod xdebug
php5dismod xhprof
phpdismod xdebug
phpdismod xhprof
sed -i 's/^display_errors\s*=.*/display_errors = Off/g' /etc/php/7.1/fpm/conf.d/30-custom-php.ini
sed -i 's/^max_execution_time\s*=.*/max_execution_time = 60/g' /etc/php/7.1/fpm/conf.d/30-custom-php.ini
fi
Expand Down
8 changes: 4 additions & 4 deletions 7.2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ groupmod -g $FPM_GID www-data
chown www-data:www-data /var/log/php

# We'll say that we are by default in dev
php5enmod xdebug
php5enmod xhprof
phpenmod xdebug
phpenmod xhprof
sed -i 's/^display_errors\s*=.*/display_errors = On/g' /etc/php/7.2//fpm/conf.d/30-custom-php.ini
sed -i 's/^max_execution_time\s*=.*/max_execution_time = -1/g' /etc/php/7.2/fpm/conf.d/30-custom-php.ini

# If prod has been set ... "clean"
if [ "$ENVIRONMENT" != "dev" ]; then
php5dismod xdebug
php5dismod xhprof
phpdismod xdebug
phpdismod xhprof
sed -i 's/^display_errors\s*=.*/display_errors = Off/g' /etc/php/7.2/fpm/conf.d/30-custom-php.ini
sed -i 's/^max_execution_time\s*=.*/max_execution_time = 60/g' /etc/php/7.2/fpm/conf.d/30-custom-php.ini
fi
Expand Down

0 comments on commit c55c685

Please sign in to comment.