From 972a8c87bb76bab515d3ba14e58883dd35dfac13 Mon Sep 17 00:00:00 2001 From: yyuurrii34 <46563122+yyuurrii34@users.noreply.github.com> Date: Wed, 21 Apr 2021 19:30:24 +0800 Subject: [PATCH] Update wg_game.sh use via ELRepo's pre-built module --- wg_game.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wg_game.sh b/wg_game.sh index 0283539..4a060c3 100644 --- a/wg_game.sh +++ b/wg_game.sh @@ -82,10 +82,13 @@ function install_wg(){ systemctl disable firewalld install_tools "yum" elif [ "$RELEASE" == "centos" ] && [ "$VERSION" == "8" ]; then - yum install -y yum-utils epel-release - yum-config-manager --setopt=centosplus.includepkgs="kernel-plus, kernel-plus-*" --setopt=centosplus.enabled=1 --save - sed -e 's/^DEFAULTKERNEL=kernel-core$/DEFAULTKERNEL=kernel-plus-core/' -i /etc/sysconfig/kernel - yum install -y kernel-plus wireguard-tools + #yum install -y yum-utils epel-release + #yum-config-manager --setopt=centosplus.includepkgs="kernel-plus, kernel-plus-*" --setopt=centosplus.enabled=1 --save + #sed -e 's/^DEFAULTKERNEL=kernel-core$/DEFAULTKERNEL=kernel-plus-core/' -i /etc/sysconfig/kernel + #yum install -y kernel-plus wireguard-tools + #doesn't work sometimes,use the method 2 via ELRepo's pre-built module + yum install elrepo-release epel-release + yum install kmod-wireguard wireguard-tools sed -i "s/GRUB_DEFAULT=saved/GRUB_DEFAULT=0/" /etc/default/grub grub2-mkconfig -o /boot/grub2/grub.cfg systemctl stop firewalld