Update index.py

pull/109/head
Mr Chen 6 years ago
parent 3ca596e9df
commit 879d161d3e
  1. 6
      plugins/rsyncd/index.py

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

Loading…
Cancel
Save