From 384c4b6423cf836f0264b113744fea422cc45224 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Jul 2022 15:20:22 +0800 Subject: [PATCH] Update install.sh --- plugins/php/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/php/install.sh b/plugins/php/install.sh index 07538d6ed..f2fd51424 100755 --- a/plugins/php/install.sh +++ b/plugins/php/install.sh @@ -33,10 +33,11 @@ fi if [ "${action}" == "uninstall" ];then - if [ -f /usr/lib/systemd/system/php${type}.service ];then + if [ -f /usr/lib/systemd/system/php${type}.service ] || [ -f /lib/systemd/system/php${type}.service ] ;then systemctl stop php${type} systemctl disable php${type} rm -rf /usr/lib/systemd/system/php${type}.service + rm -rf /lib/systemd/system/php${type}.service systemctl daemon-reload fi fi