From 6c88c7fd2709f636aa5b409d81e408f8508bf5c3 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sat, 11 Jul 2020 20:19:11 -0500 Subject: [PATCH] Fix for CentOS/RHEL 8 - Fix firewalld detection when the setup script is run again --- vpnsetup_centos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 03f97ea..9ddb3ab 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -174,7 +174,7 @@ else REPO4='--enablerepo=codeready-builder-for-rhel-8-*' fi yum "$REPO4" -y install systemd-devel libevent-devel fipscheck-devel || exiterr2 - if systemctl is-active --quiet firewalld.service; then + if systemctl is-active --quiet firewalld.service || grep -qs "hwdsl2 VPN script" /etc/sysconfig/nftables.conf; then use_nft=1 yum -y install nftables || exiterr2 else