Skip to content

Instantly share code, notes, and snippets.

@bouroo
Created June 29, 2019 09:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bouroo/7d0e6964bf0658fee869a79644e90f7d to your computer and use it in GitHub Desktop.
Save bouroo/7d0e6964bf0658fee869a79644e90f7d to your computer and use it in GitHub Desktop.
Install OpenVPN from OpenVPN project's own software repositories
#!/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