From 140624e62fbf4718fbd1c84f14fdf84adab3abee Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 24 Aug 2023 14:47:01 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 7b5a53d03..643c1aca7 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -343,9 +343,14 @@ def initdInstall(): def initdUinstall(): - if mw.isAppleSystem(): + current_os = mw.getOs() + if getOs() == 'darwin': return "Apple Computer does not support" + if current_os.startswith('freebsd'): + initd_bin = getInitDFile() + os.remove(initd_bin) + mw.execShell('systemctl disable openresty') return 'ok'