Update index.py

pull/109/head
midoks 3 years ago
parent b282fa9c4e
commit 4387a1e3b6
  1. 3
      plugins/rsyncd/index.py

@ -102,8 +102,7 @@ def initDreplace():
# conf # conf
conf_path = appConf() conf_path = appConf()
conf_tpl_path = getPluginDir() + '/conf/rsyncd.conf' conf_tpl_path = getPluginDir() + '/conf/rsyncd.conf'
if conf.strip() == '': if not os.path.exists(conf_path):
of not os.path.exists(conf_path):
content = mw.readFile(conf_tpl_path) content = mw.readFile(conf_tpl_path)
mw.writeFile(conf_path, content) mw.writeFile(conf_path, content)

Loading…
Cancel
Save