„install.sh“ hinzufügen
This commit is contained in:
+23
@@ -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/
|
||||||
Reference in New Issue
Block a user