Update index.py

pull/619/head
Mr Chen 10 months ago
parent 084843586e
commit bc6c1886b9
  1. 3
      plugins/zabbix_agent/index.py

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

Loading…
Cancel
Save