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'):