Update index.py

pull/445/head
midoks 2 years ago
parent 010624023f
commit 0a089fcedf
  1. 9
      plugins/openresty/index.py

@ -308,10 +308,15 @@ def reload():
def initdStatus():
if mw.isAppleSystem():
current_os = mw.getOs()
if getOs() == 'darwin':
return "Apple Computer does not support"
if current_os.startswith('freebsd'):
initd_bin = getInitDFile()
if os.path.exists(initd_bin):
return 'ok'
shell_cmd = 'systemctl status openresty | grep loaded | grep "enabled;"'
data = mw.execShell(shell_cmd)
if data[0] == '':

Loading…
Cancel
Save