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