Created
April 18, 2016 22:20
-
-
Save bencevans/081b5aff2b0f28605894642ca6b3e10d to your computer and use it in GitHub Desktop.
Install OpenVPN + iVPN Config Files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo IVPN Installer... | |
echo Ensuring wget is installed | |
which wget | |
if [[ $? == 1 ]]; then | |
echo Installing wget | |
sudo apt-get install -y -qq wget | |
fi | |
echo Ensuring unzip is installed | |
which unzip | |
if [[ $? == 1 ]]; then | |
echo Installing unzip | |
sudo apt-get install -y -qq unzip | |
fi | |
echo Installing OpenVPN... | |
sudo apt-get install -y -qq openvpn | |
echo Downloading IVPN Config Files | |
wget https://www.ivpn.net/releases/config/ivpn-config-conf.zip -q -O /tmp/ivpn-config-conf.zip | |
sudo unzip /tmp/ivpn-config-conf.zip -d /etc/openvpn | |
sudo mv /etc/openvpn/IVPN-config/* /etc/openvpn | |
sudo rmdir /etc/openvpn/IVPN-config | |
ls /etc/openvpn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment