Skip to content

Instantly share code, notes, and snippets.

@ehemmete
Last active March 17, 2020 19:36
Show Gist options
  • Save ehemmete/70396684d6ed91687ec4b7f85aa8961b to your computer and use it in GitHub Desktop.
Save ehemmete/70396684d6ed91687ec4b7f85aa8961b to your computer and use it in GitHub Desktop.
Choices.xml postinstall.sh
#!/bin/sh
resourceLocation=$(/usr/bin/dirname "$0")
/usr/sbin/installer -applyChoiceChangesXML "${resourceLocation}/choicesForAnyConnectVPN.xml" -pkg "${resourceLocation}/AnyConnect.pkg" -target "$3"
/usr/bin/security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain "${resourceLocation}/SSL.crt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment