From 9c69443e2fab6ac6ec960ff4e8ab111fbbe56735 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 12 Sep 2019 22:51:51 +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 bef71387f..71c34e28e 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -98,7 +98,7 @@ def getLog(): return tmp.groups()[0] -def initConf(): +def initDreplace(): conf_path = appConf() conf = public.readFile(conf_path) @@ -130,7 +130,7 @@ def initConf(): def start(): - file = initConf() + file = initDreplace() data = public.execShell(file + ' start') if data[1] == '': return 'ok' @@ -138,7 +138,7 @@ def start(): def stop(): - file = initConf() + file = initDreplace() data = public.execShell(file + ' stop') if data[1] == '': return 'ok'