优化rsyncd启动配置

pull/109/head
Mr Chen 6 years ago
parent 46ebef63af
commit 1a50fd660c
  1. 4
      plugins/rsyncd/index.py

@ -90,7 +90,9 @@ def getLog():
def initConf():
conf_path = appConf()
conf = public.readFile(conf_path)
conf = re.sub('^#(.*)', '', conf)
compile_sub = re.compile('^#(.*)',re.M)
conf = compile_sub.sub('', conf)
conf_tpl_path = getPluginDir() + '/conf/rsyncd.conf'
if conf.strip() == '':
content = public.readFile(conf_tpl_path)

Loading…
Cancel
Save