Update setup.py for update_package. Get new path for downloading from zabbix.com. CF https://tkt.fws.fr/front/ticket.form.php?id=47255

Update zabbix-agent to 5.2.2
master
Heuze Florent 4 years ago
parent 1ca7ebda67
commit fae6adbb4e
  1. 4
      WAPT/control
  2. 3
      setup.py
  3. BIN
      zabbix_agent-5.2.1-windows-amd64-openssl.msi
  4. BIN
      zabbix_agent-5.2.1-windows-i386-openssl.msi
  5. BIN
      zabbix_agent-5.2.2-windows-amd64-openssl.msi
  6. BIN
      zabbix_agent-5.2.2-windows-i386-openssl.msi

@ -1,5 +1,5 @@
package : fws-zabbix-agent package : fws-zabbix-agent
version : 5.2.1-1 version : 5.2.2-0
architecture : all architecture : all
section : base section : base
priority : optional priority : optional
@ -9,7 +9,7 @@ maintainer : Heuze Florent <heuzef@firewall-services.com>
description : Zabbix Monitoring Agent description : Zabbix Monitoring Agent
depends : depends :
conflicts : conflicts :
maturity : PROD maturity : PREPROD
locale : locale :
target_os : windows target_os : windows
min_os_version : 5.0 min_os_version : 5.0

@ -70,6 +70,7 @@ def update_package():
print('Checking latest agent version') print('Checking latest agent version')
page = wgets('https://www.zabbix.com/download') page = wgets('https://www.zabbix.com/download')
latest_version = re.search('"latest":"(\d+(\.\d+)*)"', page).group(1) latest_version = re.search('"latest":"(\d+(\.\d+)*)"', page).group(1)
branch = re.search('"slug":"(\d+(\.\d+)*)"', page).group(1)
pe = PackageEntry() pe = PackageEntry()
control = pe.load_control_from_wapt(os.getcwd()) control = pe.load_control_from_wapt(os.getcwd())
current_version = control['version'].split('-',1)[0] current_version = control['version'].split('-',1)[0]
@ -79,7 +80,7 @@ def update_package():
for arch in ['amd64', 'i386']: for arch in ['amd64', 'i386']:
filename ='zabbix_agent-%s-windows-%s-openssl.msi' % (latest_version, arch) filename ='zabbix_agent-%s-windows-%s-openssl.msi' % (latest_version, arch)
if not isfile(filename): if not isfile(filename):
url = 'https://www.zabbix.com/downloads/%s/%s' % (latest_version, filename) url = 'https://cdn.zabbix.com/zabbix/binaries/stable/%s/%s/%s' % (branch, latest_version, filename)
print('Downloading %s from %s' % (filename, url)) print('Downloading %s from %s' % (filename, url))
wget(url, filename) wget(url, filename)
for old in glob.glob(r'zabbix_agent-*-windows-%s-openssl.msi' % arch): for old in glob.glob(r'zabbix_agent-*-windows-%s-openssl.msi' % arch):

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save