-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openvpnconnectv3 won't install due to a typo in the pkgName #784
Comments
so, which one of the two suggestions should we use? and can you create a PR for this? |
I was hoping that someone with more scripting experience than me (none to poor), would take a look and maybe come up with a better suggestion... The PR request is created |
ok, so I created a PR (#801) for the pkgName fix. Thank you. When I run either suggestion to get the appNewVersion, I get an error:
|
The correct File/Code is in the PR #796 and it works.
sudo ./assemble.sh -l /Users/savvas/Desktop/Mosyle/Resources/InstallomatorLabels openvpnconnectv3 NOTIFY=silent DEBUG=0 sudo ./assemble.sh -l /Users/savvas/Desktop/Mosyle/Resources/InstallomatorLabels openvpnconnectv3 NOTIFY=silent DEBUG=0 |
I've incorporated the change from PR #796 into my script, but it seems unable to successfully download the .dmg for some reason. Output below: Script result: 2022-12-27 10:41:14 : REQ : : shifting arguments for Jamf
< date: Tue, 27 Dec 2022 15:41:16 GMT < content-type: text/html; charset=UTF-8 < location: https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.4.1.4522_signed.dmg < expires: Wed, 11 Jan 1984 05:00:00 GMT < cache-control: no-cache, must-revalidate, max-age=0 < x-redirect-by: redirection < cf-cache-status: MISS < server: cloudflare < cf-ray: 780328d21fcd78e1-EWR < { [0 bytes data]
< date: Tue, 27 Dec 2022 15:41:16 GMT < content-type: text/plain; charset=UTF-8 < content-length: 16 < x-frame-options: SAMEORIGIN < referrer-policy: same-origin < cache-control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0 < expires: Thu, 01 Jan 1970 00:00:01 GMT < server: cloudflare < cf-ray: 780328d41bfc8c35-EWR
2022-12-27 10:41:16 : REQ : openvpnconnectv3 : ################## End Installomator, exit code 2 |
i encountered this too but it's not related to the original issue posted here, you can fix this by adding curl options to the label. The example in readme.md works just fine... curlOptions: (array, optional) Options to the curl command, needed for curl to be able to download the software. Usually used for adding extra headers that some servers need in order to serve the file.
(See “mocha”-labels, for examples on labels, and buildLabel.sh for header-examples.) |
That worked, thank you! I added the default user agent listed and this particular problem is resolved for us. |
1.)
pkgName for arm64 is "/OpenVPN_Connect...." but should be "OpenVPN_Connect..."
2.)
Suggestion to add appNewVersion to avoid unnecessary download and installation. Something like the following maybe:
appNewVersion=$(curl -fs "https://openvpn.net/client-connect-vpn-for-mac-os/" | grep -i "Release notes for " | grep -vx -m 1 '.beta.' | sed "s|.for (.) .|\1|")
or
appNewVersion=$(curl -fs "https://openvpn.net/client-connect-vpn-for-mac-os/" | grep -v 'beta'| grep -m 1 "Release notes for " | sed "s|.for (.) .|\1|")
2022-11-26 18:34:19 :: 1st-v9.6 :
2022-11-26 18:34:19 :: 1st-v9.6 : openvpnconnectv3
2022-11-26 18:34:19 : REQ : openvpnconnectv3 : ################## Start Installomator v. 10.0, date 2022-11-18
2022-11-26 18:34:19 : INFO : openvpnconnectv3 : ################## Version: 10.0
2022-11-26 18:34:19 : INFO : openvpnconnectv3 : ################## Date: 2022-11-18
2022-11-26 18:34:19 : INFO : openvpnconnectv3 : ################## openvpnconnectv3
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : BLOCKING_PROCESS_ACTION=prompt_user
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : NOTIFY=all
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : LOGGING=INFO
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : LOGO=/Applications/Self-Service.app/Contents/Resources/AppIcon.icns
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : Label type: pkgInDmg
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : archiveName: OpenVPN Connect.dmg
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : no blocking processes defined, using OpenVPN Connect as default
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : App(s) found: /Applications/OpenVPN Connect.app
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : found app at /Applications/OpenVPN Connect.app, version 3.3.6, on versionKey CFBundleShortVersionString
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : appversion: 3.3.6
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : Latest version not specified.
2022-11-26 18:34:20 : REQ : openvpnconnectv3 : Downloading https://openvpn.net/downloads/openvpn-connect-v3-macos.dmg to OpenVPN Connect.dmg
2022-11-26 18:34:20 : INFO : openvpnconnectv3 : notifying
2022-11-26 18:34:48 : INFO : openvpnconnectv3 : found blocking process OpenVPN Connect
2022-11-26 18:34:51 : INFO : openvpnconnectv3 : telling app OpenVPN Connect to quit
2022-11-26 18:34:51 : INFO : openvpnconnectv3 : waiting 30 seconds for processes to quit
2022-11-26 18:35:22 : REQ : openvpnconnectv3 : no more blocking processes, continue with update
2022-11-26 18:35:22 : REQ : openvpnconnectv3 : Installing OpenVPN Connect
2022-11-26 18:35:22 : INFO : openvpnconnectv3 : notifying
2022-11-26 18:35:22 : INFO : openvpnconnectv3 : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.EtLRERn4/OpenVPN Connect.dmg
2022-11-26 18:35:27 : INFO : openvpnconnectv3 : Mounted: /Volumes/OpenVPN Connect
2022-11-26 18:35:27 : INFO : openvpnconnectv3 : Telling app OpenVPN Connect.app to open
2022-11-26 18:35:27 : INFO : openvpnconnectv3 : Reopened OpenVPN Connect.app as savvas
2022-11-26 18:35:27 : ERROR : openvpnconnectv3 : ERROR: couldn't find pkg �/OpenVPN_Connect_[0-9_()]*_arm64_Installer_signed.pkg� in dmg OpenVPN Connect.dmg
2022-11-26 18:35:27 : REQ : openvpnconnectv3 : ################## End Installomator, exit code 20
The text was updated successfully, but these errors were encountered: