mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user