-
Notifications
You must be signed in to change notification settings - Fork 604
Description
Current
awsvpnclient)
name="AWS VPN Client"
type="pkg"
downloadURL="https://d20adtppz83p9s.cloudfront.net/OSX/latest/AWS_VPN_Client.pkg"
expectedTeamID="94KV3E626L"
#appNewVersion=$(curl -is "https://beta2.communitypatch.com/jamf/v1/ba1efae22ae74a9eb4e915c31fef5dd2/patch/AWSVPNClient" | grep currentVersion | tr ',' '\n' | grep currentVersion | cut -d '"' -f 4)
;;
**Can we update the appNewVersion function so it uses the .rss feed and also change the downloadURL because it is not always reliable. This change would provide AppNewVersion functionality and also use the latest AppNewVersion in the download url so it will always download the latest version.
awsvpnclient)
name="AWS VPN Client"
type="pkg"
baseURL="https://d20adtppz83p9s.cloudfront.net/OSX"
appNewVersion=$(curl -s "https://docs.aws.amazon.com/vpn/latest/clientvpn-user/client-vpn-user-guide.rss" | grep -o 'AWS provided client ([0-9].[0-9].[0-9]) for macOS' | head -1 | grep -o '[0-9].[0-9].[0-9]')
downloadURL="${baseURL}/${appNewVersion}/AWS_VPN_Client.pkg"
expectedTeamID="94KV3E626L"
;;