From 0e311576754f372c501cc58010e9979fa0f84f68 Mon Sep 17 00:00:00 2001 From: Oliver Surke Date: Fri, 11 Nov 2022 13:40:50 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Einstall.sh=E2=80=9C=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 install.sh 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/