Files
gp-okta/install.sh
T
2022-11-16 08:53:13 +01:00

24 lines
514 B
Bash

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
##
# 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/