Skip to content

Commit

Permalink
Fix missing env after fpm restart in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru authored Mar 16, 2021
1 parent 1f823a3 commit db545e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ done
#restart fpm
echo 'Restart fpm ...'
PHP_VERSION=$(php -v | grep '^PHP ' | sed -E "s/^PHP ([0-9]\.[0-9]).*$/\1/")
service php"$PHP_VERSION"-fpm restart 2> /dev/null
service php-fpm restart 2> /dev/null
/etc/init.d/php"$PHP_VERSION"-fpm restart 2> /dev/null
/etc/init.d/php-fpm restart 2> /dev/null

#restart apache
echo 'Restart apache ...'
Expand Down

0 comments on commit db545e7

Please sign in to comment.