From 988b948207bc265e50846c19c0ad135572112087 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 20 Jan 2020 12:39:13 +0100 Subject: [PATCH] Update wireguard-install.sh --- wireguard-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wireguard-install.sh b/wireguard-install.sh index 6244d5b..5e33c6a 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -166,6 +166,8 @@ echo "Install WireGuard Server ($distribution)" dnf install -y wireguard-dkms wireguard-tools iptables > /dev/null 2>&1 elif [ "$distribution" = "Ubuntu" ] || [ "$distribution" = "Deepin" ]; then + apt-get update > /dev/null 2>&1 + apt-get install -y software-properties-common add-apt-repository ppa:wireguard/wireguard apt-get update > /dev/null 2>&1 apt-get install -y "linux-headers-$(uname -r)" > /dev/null 2>&1