Update index.py

This commit is contained in:
Mr Chen
2019-03-06 19:22:53 +08:00
parent 6c5ee78b18
commit ba39c39622
+1 -1
View File
@@ -84,7 +84,7 @@ def getLog():
def initConf():
conf_path = appConf()
conf = public.readFile(conf_path)
conf = re.sub('#*(.*)', '', conf)
conf = re.sub('^#(.*)', '', conf)
conf_tpl_path = getPluginDir() + '/conf/rsyncd.conf'
if conf.strip() == '':
content = public.readFile(conf_tpl_path)