Update common.sh

This commit is contained in:
Mr Chen
2024-06-11 14:57:42 +08:00
parent 9169502512
commit d171e28e49
+1 -1
View File
@@ -57,7 +57,7 @@ fi
echo "apt install -y php${version}-${extName}"
echo "apt remove -y php${version}-${extName}"
php_status=`systemctl status php${version}-fpm | grep active`
php_status=`systemctl status php${version}-fpm | grep inactive`
echo "status:$php_status"
if [ "$php_status" != "" ];then
systemctl restart php${version}-fpm