1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-05-31 18:50:47 +00:00

Merge pull request #109 from angristan:ubuntu-no-ppa

Ubuntu: remove PPA, use native packages
This commit is contained in:
Stanislas 2020-08-03 17:06:43 +02:00 committed by GitHub
commit 5a65e88667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -13,7 +13,7 @@ WireGuard does not fit your environment? Check out [openvpn-install](https://git
Supported distributions: Supported distributions:
- Ubuntu 16.04+ - Ubuntu >= 16.04
- Debian 10 - Debian 10
- Fedora - Fedora
- CentOS - CentOS

View File

@ -124,10 +124,7 @@ function installWireGuard() {
# Install WireGuard tools and module # Install WireGuard tools and module
if [[ ${OS} == 'ubuntu' ]]; then if [[ ${OS} == 'ubuntu' ]]; then
apt-get install -y software-properties-common
add-apt-repository -y ppa:wireguard/wireguard
apt-get update apt-get update
apt-get install -y "linux-headers-$(uname -r)"
apt-get install -y wireguard iptables resolvconf qrencode apt-get install -y wireguard iptables resolvconf qrencode
elif [[ ${OS} == 'debian' ]]; then elif [[ ${OS} == 'debian' ]]; then
if ! grep -rqs "^deb .* buster-backports" /etc/apt/; then if ! grep -rqs "^deb .* buster-backports" /etc/apt/; then