tis-fusioninventoryagent icon

FusionInventory Agent

Paquet d’installation silencieuse pour FusionInventory Agent

2.6-5

  • package: tis-fusioninventoryagent
  • name: FusionInventory Agent
  • version: 2.6-5
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Simon Fonteneau,Jimmy PELÉ
  • editor: FusionInventory
  • licence: GPLv2
  • locale: all
  • target_os: windows
  • impacted_process: fusioninventory-agent
  • architecture: x86
  • signature_date:
  • size: 10.13 Mo
  • installed_size: 61.02 Mo
  • homepage : https://fusioninventory.org/

package           : tis-fusioninventoryagent
version           : 2.6-5
architecture      : x86
section           : base
priority          : optional
name              : FusionInventory Agent
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Simon Fonteneau,Jimmy PELÉ
description       : FusionInventory is a free software solution for devices inventory & software deployment.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/fusioninventory/fusioninventory-agent/releases
installed_size    : 61022208
impacted_process  : fusioninventory-agent
description_fr    : FusionInventory est une solution logicielle gratuite pour l'inventaire des appareils et le déploiement des logiciels
description_pl    : FusionInventory to darmowe oprogramowanie do inwentaryzacji urządzeń i wdrażania oprogramowania
description_de    : FusionInventory ist eine kostenlose Softwarelösung für Geräteinventarisierung und Softwareverteilung
description_es    : FusionInventory es una solución de software libre para el inventario de dispositivos y el despliegue de software
description_pt    : FusionInventory é uma solução de software livre para o inventário de dispositivos e implementação de software
description_it    : FusionInventory è una soluzione software gratuita per l'inventario dei dispositivi e la distribuzione del software
description_nl    : FusionInventory is een gratis software-oplossing voor het inventariseren van apparaten en het inzetten van software
description_ru    : FusionInventory - это бесплатное программное решение для инвентаризации устройств и развертывания программного обеспечения
audit_schedule    : 
editor            : FusionInventory
keywords          : 
licence           : GPLv2
homepage          : https://fusioninventory.org/
package_uuid      : 23378154-fb8b-492e-b026-588e4ed703af
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : fba3af4f79be43de12a5f9438a98831edc7a08c5761e5f216eb9d9ca5d98b3ff
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : rWcsvH8VhHCw6RFB4zfuC7RF6C4SFjA6PxdZWwTY9B1u+e9JruFv1TaEOyg7RRuNf1gVY9pPK6oNtEP6YHMEYKjztEvLk/gzDiMAFg1B5cv8uaMWQQKY3ko5EWbEZILUgH78iaMw2iXbb7odL5NDEEBJWqVu4NjOMwzLobbmnj4zmsLO6WJ28+7BKk7YJXd+VpUVkzhPyoc69cIM2R+d1MOE+rOGWIOw1SLZWUyNTp+IVErWR6urQkyJkXyTxK+bJh54gve3NuF8yXRXgy4TMWQc/U8v6lB//p6HFXijvs9MCDOp2OlMB0NGUNxzcAleyOYk+DwvpNpynIc83Q069g==
signature_date    : 2022-08-10T18:01:28.016804
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *


server = "http://glpi/glpi/plugins/fusioninventory/"
options = "/no-ssl-check"


def install():
    bin_name = glob.glob("fusioninventory-agent_windows-*.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags='/S /acceptlicense /server="%s" /execmode=service %s /runnow' % (server, options),
        key="FusionInventory-Agent",
        min_version=control.get_software_version(),
    )

# -*- coding: utf-8 -*-
from setuphelpers import *
import json


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/fusioninventory/fusioninventory-agent/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        version = json_load["tag_name"].split("-")[-1].replace("v", "")
        if "%s_%s.exe" % (control.architecture, version) in download["name"]:
            download_url = download["browser_download_url"]
            latest_bin = download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin).split("-")[0]
    # if not version_from_file.startswith(version) and version_from_file != '':
    if Version(version_from_file) != Version(version) and version_from_file != "":
        print("Changing version to the version number of the binary")
        os.rename(latest_bin, latest_bin.replace(version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated

65b2246ec4a2bd45f5bd6f23012cb8be8309f850452a76f7561ed0e4a4cdc69b : setup.py
350d6efa3fa05a1a823740054f16ab6a9596c8b23eedf81e2c986d6baa872752 : fusioninventory-agent_windows-x86_2.6.exe
9fe6de1fab518d5c544f0e908930c140bce498c299050d16db5f47b2d46c1b0c : update_package.py
fba3af4f79be43de12a5f9438a98831edc7a08c5761e5f216eb9d9ca5d98b3ff : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
c649c98a96c5caba24c1e99706c024d7f68fb91f4113f458eee107ac969b6827 : luti.json
f5c08e8bdb45308ad6f3231a4a58ee4790ba739b9bc779e506c571b7b7976a79 : WAPT/control