Update index.py

This commit is contained in:
Mr Chen
2019-03-06 20:35:55 +08:00
parent fc37413d91
commit ce9f53dddb
+3 -3
View File
@@ -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'
@@ -155,7 +155,7 @@ def initdInstall():
if public.isAppleSystem():
return "Apple Computer does not support"
data = public.execShell('systemctl enable rsyncd.service')
if data[1] == '':
if data[0] == '':
return 'ok'
return 'fail'
@@ -164,7 +164,7 @@ def initdUinstall():
if public.isAppleSystem():
return "Apple Computer does not support"
data = public.execShell('systemctl disable rsyncd.service')
if data[1] == '':
if data[0] == '':
return 'ok'
return 'fail'