Also use ZBX_SERVER_IP for the firewall rule

tags/wpkg-zabbix_agent-3.4.3-0.beta1 2.0.4
Daniel Berteaud 12 years ago
parent 0fac2878eb
commit b345e53efe
  1. 2
      packages/zabbix_agent.xml

@ -12,7 +12,7 @@
<check type="uninstall" condition="versiongreaterorequal" path="Zabbix Agent" value="%PKG_VERSION%"/> <check type="uninstall" condition="versiongreaterorequal" path="Zabbix Agent" value="%PKG_VERSION%"/>
<install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' /> <install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' />
<install cmd='netsh firewall add portopening TCP 10050 "Zabbix Agent" enable custom "%IPASSERELLE_IP%"' /> <install cmd='netsh firewall add portopening TCP 10050 "Zabbix Agent" enable custom "%ZBX_SERVER_IP%"' />
<install cmd='%COMSPEC% /C sc start "Zabbix Agent"'> <install cmd='%COMSPEC% /C sc start "Zabbix Agent"'>
<exit code="any" /> <exit code="any" />
</install> </install>

Loading…
Cancel
Save