From b51f3fdd682010fe313edec3edcc98aa5f28f9b5 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 24 Aug 2023 21:00:47 +0800 Subject: [PATCH] update --- plugins/memcached/index.py | 2 +- plugins/openresty/index.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/memcached/index.py b/plugins/memcached/index.py index e1461e0f6..2a18dcaca 100755 --- a/plugins/memcached/index.py +++ b/plugins/memcached/index.py @@ -239,7 +239,7 @@ def saveConf(): def initdStatus(): current_os = mw.getOs() - if getOs() == 'darwin': + if current_os == 'darwin': return "Apple Computer does not support" if current_os.startswith('freebsd'): diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 3bc134e38..36dd8e175 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -335,7 +335,7 @@ def reload(): def initdStatus(): current_os = mw.getOs() - if getOs() == 'darwin': + if current_os == 'darwin': return "Apple Computer does not support" if current_os.startswith('freebsd'): @@ -352,7 +352,7 @@ def initdStatus(): def initdInstall(): current_os = mw.getOs() - if getOs() == 'darwin': + if current_os == 'darwin': return "Apple Computer does not support" # freebsd initd install @@ -371,7 +371,7 @@ def initdInstall(): def initdUinstall(): current_os = mw.getOs() - if getOs() == 'darwin': + if current_os == 'darwin': return "Apple Computer does not support" if current_os.startswith('freebsd'):