From bc6c1886b98ddabff1d60f3627e8f335fc34ff41 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 20 Jul 2024 17:37:08 +0800 Subject: [PATCH] Update index.py --- plugins/zabbix_agent/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/zabbix_agent/index.py b/plugins/zabbix_agent/index.py index 3a13974aa..24be331ee 100755 --- a/plugins/zabbix_agent/index.py +++ b/plugins/zabbix_agent/index.py @@ -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')