From d715c67029a27caa0824df694c0a8b7d1ad66e65 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 6 Mar 2019 20:35:55 +0800 Subject: [PATCH] Update index.py --- plugins/rsyncd/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index 6cdf445bb..1e13a0977 100755 --- a/plugins/rsyncd/index.py +++ b/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' @@ -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'