Update index.py

pull/445/head
midoks 2 years ago
parent 65f90b473c
commit 140624e62f
  1. 7
      plugins/openresty/index.py

@ -343,9 +343,14 @@ def initdInstall():
def initdUinstall(): def initdUinstall():
if mw.isAppleSystem(): current_os = mw.getOs()
if getOs() == 'darwin':
return "Apple Computer does not support" return "Apple Computer does not support"
if current_os.startswith('freebsd'):
initd_bin = getInitDFile()
os.remove(initd_bin)
mw.execShell('systemctl disable openresty') mw.execShell('systemctl disable openresty')
return 'ok' return 'ok'

Loading…
Cancel
Save