From 27fbc1546972362e459309aa9d38c1be2ce9064a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 13 Jun 2024 21:57:39 +0800 Subject: [PATCH] Update install.sh --- plugins/php-apt/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/php-apt/install.sh b/plugins/php-apt/install.sh index 34b8a99eb..d7866f19b 100755 --- a/plugins/php-apt/install.sh +++ b/plugins/php-apt/install.sh @@ -73,6 +73,16 @@ if [ "${action}" == "uninstall" ] && [ -d ${serverPath}/php-apt/${type} ];then #初始化 cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py stop ${type} cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py initd_uninstall ${type} + + if [ -f /lib/systemd/system/php${apt_ver}-fpm.service ];then + rm -rf /lib/systemd/system/php${apt_ver}-fpm.service + fi + + if [ -f /lib/systemd/system/system/php${apt_ver}-fpm.service ];then + rm -rf /lib/systemd/system/php${apt_ver}-fpm.service + fi + + systemctl daemon-reload fi cd ${curPath} && sh -x $curPath/versions/$2/install.sh $1