Skip to content

Commit db545e7

Browse files
authored
Fix missing env after fpm restart in docker
1 parent 1f823a3 commit db545e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php-extension.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ done
3131
#restart fpm
3232
echo 'Restart fpm ...'
3333
PHP_VERSION=$(php -v | grep '^PHP ' | sed -E "s/^PHP ([0-9]\.[0-9]).*$/\1/")
34-
service php"$PHP_VERSION"-fpm restart 2> /dev/null
35-
service php-fpm restart 2> /dev/null
34+
/etc/init.d/php"$PHP_VERSION"-fpm restart 2> /dev/null
35+
/etc/init.d/php-fpm restart 2> /dev/null
3636

3737
#restart apache
3838
echo 'Restart apache ...'

0 commit comments

Comments
 (0)