From 349741b31be4e322dd2fe598f06ff3a02bca80ab Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 6 Mar 2019 20:40:11 +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 f5d7fa038..3a055d723 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' @@ -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():