From 596b3cd42f5d2d21fb04168d07def7a2dc14d1f0 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 18 Jun 2022 15:44:17 +0800 Subject: [PATCH] Update install.sh --- plugins/openresty/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index 1a49e9b41..3676c3bc5 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -51,6 +51,10 @@ Install_openresty() Uninstall_openresty() { rm -rf $serverPath/openresty + + if [ -f /lib/systemd/system/openresty.service ];then + rm -rf /lib/systemd/system/openresty.service + fi echo '卸载完成' > $install_tmp }