diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..4e4a36e --- /dev/null +++ b/install.sh @@ -0,0 +1,23 @@ +which -s brew +if [[ $? != 0 ]] ; +then + # Install Homebrew + ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +else + brew update +fi + +brew install openconnect +brew install vpn-slice +pip3 install requests +pip3 install --no-binary :all: lxml + +sudo cat << EOF > /private/etc/sudoers.d/vpn.conf +## +# User specification +## +%admin ALL=(ALL) NOPASSWD: /opt/homebrew/bin/openconnect +%admin ALL=(ALL) NOPASSWD: /usr/bin/pkill +EOF + +cp -viau .openconnect bin .gp-okta.conf $HOME/