Created
June 29, 2019 09:51
-
-
Save bouroo/7d0e6964bf0658fee869a79644e90f7d to your computer and use it in GitHub Desktop.
Install OpenVPN from OpenVPN project's own software repositories
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
#!/usr/bin/env bash | |
if [ "$(whoami)" != "root" ]; then | |
SUDO=sudo | |
fi | |
if ! $(type lsb_release > /dev/null 2>&1) ; then | |
${SUDO} apt install -y lsb-release | |
fi | |
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | ${SUDO} apt-key add - | |
${SUDO} echo "deb http://build.openvpn.net/debian/openvpn/stable $(lsb_release -sc) main" > /etc/apt/sources.list.d/openvpn-aptrepo.list | |
${SUDO} apt update | |
${SUDO} apt -y install openvpn | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment