1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-11-21 12:25:08 +00:00

Remove unneeded packages on Arch Linux (#225)

This commit is contained in:
enolp 2021-04-27 20:40:13 +00:00 committed by GitHub
parent 7be2cf9fb4
commit b7855925e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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