From c1fb45f9420d28d9b8a7e5a8d9bfd7100b281d1e Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 7 Dec 2020 11:37:48 -0600 Subject: [PATCH] Fix for CentOS 8 - The repository ID "powertools" is now lower case in the latest CentOS release. Update to work in both cases. --- extras/vpnupgrade_centos.sh | 2 +- vpnsetup_centos.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/vpnupgrade_centos.sh b/extras/vpnupgrade_centos.sh index ff07cb6..364658e 100644 --- a/extras/vpnupgrade_centos.sh +++ b/extras/vpnupgrade_centos.sh @@ -144,7 +144,7 @@ yum -y install nss-devel nspr-devel pkgconfig pam-devel \ REPO1='--enablerepo=*server-*optional*' REPO2='--enablerepo=*releases-optional*' -REPO3='--enablerepo=PowerTools' +REPO3='--enablerepo=[Pp]ower[Tt]ools' if grep -qs "release 7" /etc/redhat-release; then yum -y install systemd-devel || exiterr2 diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 06e1715..5975893 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -147,7 +147,7 @@ bigecho "Installing packages required for the VPN..." REPO1='--enablerepo=epel' REPO2='--enablerepo=*server-*optional*' REPO3='--enablerepo=*releases-optional*' -REPO4='--enablerepo=PowerTools' +REPO4='--enablerepo=[Pp]ower[Tt]ools' yum -y install nss-devel nspr-devel pkgconfig pam-devel \ libcap-ng-devel libselinux-devel curl-devel nss-tools \