Update index.py

pull/109/head
midoks 3 years ago
parent 3e3419d93c
commit 978b10a9b9
  1. 8
      plugins/swap/index.py

@ -147,9 +147,7 @@ def initdInstall():
if mw.isAppleSystem(): if mw.isAppleSystem():
return "Apple Computer does not support" return "Apple Computer does not support"
data = mw.execShell('systemctl enable swap') mw.execShell('systemctl enable swap')
if data[0] == '':
return 'fail'
return 'ok' return 'ok'
@ -157,9 +155,7 @@ def initdUinstall():
if mw.isAppleSystem(): if mw.isAppleSystem():
return "Apple Computer does not support" return "Apple Computer does not support"
data = mw.execShell('systemctl disable swap') mw.execShell('systemctl disable swap')
if data[0] == '':
return 'fail'
return 'ok' return 'ok'
if __name__ == "__main__": if __name__ == "__main__":

Loading…
Cancel
Save