mirror of
https://github.com/hwdsl2/openvpn-install.git
synced 2024-07-07 20:22:22 +02:00
Update nftables check
This commit is contained in:
parent
cec64b77ca
commit
19750a5430
@ -85,9 +85,12 @@ This version of CentOS is too old and unsupported."
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$os" = "centos" ] && grep -qs "hwdsl2 VPN script" /etc/sysconfig/nftables.conf; then
|
if [ "$os" = "centos" ]; then
|
||||||
echo "This system has nftables enabled, which is not supported by this installer."
|
if grep -qs "hwdsl2 VPN script" /etc/sysconfig/nftables.conf \
|
||||||
exit
|
|| 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
|
fi
|
||||||
|
|
||||||
# Detect environments where $PATH does not include the sbin directories
|
# Detect environments where $PATH does not include the sbin directories
|
||||||
|
Loading…
Reference in New Issue
Block a user