Skip to content

Instantly share code, notes, and snippets.

@ehemmete
ehemmete / postinstall.sh
Last active March 17, 2020 19:36
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"