From d2ade7aa90d5a385dbdba8f66917e771898d9b39 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 16 Jul 2024 17:31:55 +0800 Subject: [PATCH] Update index.py --- plugins/zabbix/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/zabbix/index.py b/plugins/zabbix/index.py index 3fd73ae14..f5740797c 100755 --- a/plugins/zabbix/index.py +++ b/plugins/zabbix/index.py @@ -144,6 +144,9 @@ def zabbixNginxConf(): return mw.getServerDir()+'/web_conf/nginx/vhost/zabbix.conf' def zabbixPhpConf(): + ver = getInstallVerion() + if ver == '6.0': + return '/usr/share/zabbix/conf/zabbix.conf.php' return '/etc/zabbix/web/zabbix.conf.php' def zabbixServerConf(): @@ -182,7 +185,6 @@ def zabbixImportMySQLData(): content = contentReplace(content) mw.writeFile(php_dst_path, content) - ver = getInstallVerion() if ver == '6.0': pmdb.query("update dbversion set mandatory=6000000")