1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-06-05 13:00:48 +00:00

Fix unnecessary reinstall of packages

This commit is contained in:
Patrick M 2020-12-29 10:50:50 +01:00
parent 88ae1c0d0f
commit 241dc9688f
No known key found for this signature in database
GPG Key ID: 4590AEA0A2402830

View File

@ -147,11 +147,11 @@ function installWireGuard() {
# Check if current running kernel is LTS
ARCH_KERNEL_RELEASE=$(uname -r)
if [[ ${ARCH_KERNEL_RELEASE} == *lts* ]]; then
pacman -S --noconfirm linux-lts-headers
pacman -S --needed --noconfirm linux-lts-headers
else
pacman -S --noconfirm linux-headers
pacman -S --needed --noconfirm linux-headers
fi
pacman -S --noconfirm wireguard-tools iptables qrencode
pacman -S --needed --noconfirm wireguard-tools iptables qrencode
fi
# Make sure the directory exists (this does not seem the be the case on fedora)