From 4387a1e3b6c345c27c5609f5fdbf32ccfc73d36c Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 20 Jun 2022 10:58:23 +0800 Subject: [PATCH] Update index.py --- plugins/rsyncd/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index e3f8814e3..b19a570c9 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -102,8 +102,7 @@ def initDreplace(): # conf conf_path = appConf() conf_tpl_path = getPluginDir() + '/conf/rsyncd.conf' - if conf.strip() == '': - of not os.path.exists(conf_path): + if not os.path.exists(conf_path): content = mw.readFile(conf_tpl_path) mw.writeFile(conf_path, content)