From e25d2cd7759aebe41f5b95c9888e749cc75c2dd8 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Jul 2022 15:19:39 +0800 Subject: [PATCH] Update install.sh --- plugins/openresty/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index a769b4a3b..589f4583c 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -63,9 +63,10 @@ Install_openresty() Uninstall_openresty() { - if [ -f /usr/lib/systemd/system/openresty.service ];then + if [ -f /usr/lib/systemd/system/openresty.service ] || [ -f /lib/systemd/system/openresty.service ];then systemctl stop openresty rm -rf /usr/systemd/system/openresty.service + rm -rf /lib/systemd/system/openresty.service systemctl daemon-reload fi