Update index.py

pull/109/head
Mr Chen 6 years ago
parent db33070f64
commit d715c67029
  1. 6
      plugins/rsyncd/index.py

@ -146,7 +146,7 @@ def initdStatus():
return "Apple Computer does not support" return "Apple Computer does not support"
data = public.execShell('systemctl status rsyncd.service | grep enabled') data = public.execShell('systemctl status rsyncd.service | grep enabled')
if data[1] == '': if data[0] == '':
return 'ok' return 'ok'
return 'fail' return 'fail'
@ -155,7 +155,7 @@ def initdInstall():
if public.isAppleSystem(): if public.isAppleSystem():
return "Apple Computer does not support" return "Apple Computer does not support"
data = public.execShell('systemctl enable rsyncd.service') data = public.execShell('systemctl enable rsyncd.service')
if data[1] == '': if data[0] == '':
return 'ok' return 'ok'
return 'fail' return 'fail'
@ -164,7 +164,7 @@ def initdUinstall():
if public.isAppleSystem(): if public.isAppleSystem():
return "Apple Computer does not support" return "Apple Computer does not support"
data = public.execShell('systemctl disable rsyncd.service') data = public.execShell('systemctl disable rsyncd.service')
if data[1] == '': if data[0] == '':
return 'ok' return 'ok'
return 'fail' return 'fail'

Loading…
Cancel
Save