From 19750a5430a2bccea74e8d7a685b4b05e267b71a Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 22 May 2022 22:30:32 -0500 Subject: [PATCH] Update nftables check --- openvpn-install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 34cf772..6310b14 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -85,9 +85,12 @@ This version of CentOS is too old and unsupported." exit fi -if [ "$os" = "centos" ] && grep -qs "hwdsl2 VPN script" /etc/sysconfig/nftables.conf; then - echo "This system has nftables enabled, which is not supported by this installer." - exit +if [ "$os" = "centos" ]; then + if grep -qs "hwdsl2 VPN script" /etc/sysconfig/nftables.conf \ + || systemctl is-active --quiet nftables 2>/dev/null; then + echo "This system has nftables enabled, which is not supported by this installer." + exit + fi fi # Detect environments where $PATH does not include the sbin directories