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")