From 1ae8b95758b223e4ca98bfe0804dd5f8e30489fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 1 Feb 2023 11:08:50 +0100 Subject: [PATCH] Use forticlient_vpn pkg only to get version Then the forticlient "classic" package will be downloaded. --- app/check.forticlient.update | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/check.forticlient.update b/app/check.forticlient.update index 8833687..ff7be39 100755 --- a/app/check.forticlient.update +++ b/app/check.forticlient.update @@ -1,7 +1,9 @@ #!/bin/sh # Purpose {{{ ## Create a temp file (to monitor) if an upgrade is available for Forticlient -## from official website − https://www.fortinet.com/fr/support/product-downloads#vpn +## from official website. +## Get version number from forticlient_vpn package link : +## https://www.fortinet.com/fr/support/product-downloads#vpn ## It's based on .deb package installation to check the current version. ## It can also compare the current available version in APT repositories ## if "repo" is given as first argument. @@ -211,7 +213,7 @@ New version (${forticlient_new_version}) seems more recent than the current one if [ ! -f "${forticlient_new_pkg_path}" ]; then debug_message "Deb file − \ Download .deb file from fortinet.com to ${forticlient_new_pkg_path} ." - wget --quiet https://links.fortinet.com/forticlient/deb/vpnagent --output-document="${forticlient_new_pkg_path}" + wget --quiet https://repo.fortinet.com/repo/7.0/debian/pool/non-free/f/forticlient/forticlient_"${forticlient_new_version}"_amd64.deb --output-document="${forticlient_new_pkg_path}" fi # Verify downloaded package