From 3ca596e9dfe8f921321e8abd2f50367c1b39c61f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 6 Mar 2019 20:37:32 +0800 Subject: [PATCH] Update index.py --- plugins/rsyncd/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index 1e13a0977..f5d7fa038 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[0] == '': + if data[1] == '': return 'ok' return 'fail'