Use forticlient_vpn pkg only to get version

Then the forticlient "classic" package will be downloaded.
This commit is contained in:
Jeremy Gardais 2023-02-01 11:08:50 +01:00
parent 07813d0011
commit 1ae8b95758
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 4 additions and 2 deletions

View File

@ -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