From 03f5871c71da3fb189df91ede0fa39b684a8033d Mon Sep 17 00:00:00 2001 From: Orazio Date: Mon, 14 Sep 2020 16:19:40 +0200 Subject: [PATCH] Fixed WireGuard installation on Ubuntu when module is not built-in - PIVPN_DEPS array should be assigned before appending to it, not after, to avoid overwriting existing items. --- auto_install/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 0b261c5..e37ef3e 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -1336,11 +1336,12 @@ installWireGuard(){ echo "::: Installing WireGuard... " + PIVPN_DEPS=(wireguard-tools qrencode) + if [ "$WIREGUARD_BUILTIN" -eq 0 ]; then PIVPN_DEPS+=(linux-headers-generic wireguard-dkms) fi - PIVPN_DEPS=(wireguard-tools qrencode) installDependentPackages PIVPN_DEPS[@] fi