Update index.py

This commit is contained in:
Mr Chen
2019-03-06 20:40:11 +08:00
parent 725b398da9
commit 349741b31b
+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'
@@ -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():