diff --git a/plugins/php-apt/versions/common.sh b/plugins/php-apt/versions/common.sh index d3cec7215..f17e75a32 100644 --- a/plugins/php-apt/versions/common.sh +++ b/plugins/php-apt/versions/common.sh @@ -57,4 +57,8 @@ fi echo "apt install -y php${version}-${extName}" echo "apt remove -y php${version}-${extName}" -systemctl restart php${version}-fpm +php_status=`systemctl status php${version}-fpm | grep inactive` +echo "status:$php_status" +if [ "$php_status" == "" ];then + systemctl restart php${version}-fpm +fi \ No newline at end of file