Update index.py

This commit is contained in:
Mr Chen 2024-07-20 17:37:08 +08:00
parent 084843586e
commit bc6c1886b9
1 changed files with 2 additions and 1 deletions

View File

@ -117,9 +117,10 @@ def initAgentDConf():
mw.writeFile(dst_path,content)
def initDreplace():
initAgentDConf()
init_file = getServerDir() + '/init.pl'
if not os.path.exists(init_file):
initAgentDConf()
initAgentConf()
openPort()
mw.writeFile(init_file, 'ok')