„install.sh“ hinzufügen

This commit is contained in:
2022-11-11 13:40:50 +01:00
parent bb6893c3cc
commit 0e31157675
+23
View File
@@ -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/