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

Minor Fix: #111 kmod-wireguard package included for standard kernels in CentOS 8

This commit is contained in:
Navratan Gupta 2020-08-20 23:10:18 +05:30
parent 315646ae12
commit 8b98532883

View File

@ -140,8 +140,8 @@ function installWireGuard() {
dnf install -y wireguard-tools iptables qrencode
elif [[ ${OS} == 'centos' ]]; then
curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
yum -y install epel-release kernel kernel-devel kernel-headers
yum -y install wireguard-dkms wireguard-tools iptables qrencode
yum -y install epel-release kernel kernel-devel kernel-headers elrepo-release
yum -y install wireguard-dkms wireguard-tools iptables qrencode kmod-wireguard
elif [[ ${OS} == 'arch' ]]; then
pacman -S --noconfirm linux-headers
pacman -S --noconfirm wireguard-tools iptables qrencode
@ -354,7 +354,7 @@ function uninstallWg() {
fi
dnf autoremove -y
elif [[ ${OS} == 'centos' ]]; then
yum -y remove wireguard-dkms wireguard-tools qrencode
yum -y remove wireguard-dkms wireguard-tools qrencode kmod-wireguard
rm -f "/etc/yum.repos.d/wireguard.repo"
yum -y autoremove
elif [[ ${OS} == 'arch' ]]; then