mirror of
https://github.com/hwdsl2/openvpn-install.git
synced 2024-07-05 03:05:52 +02:00
Update nftables check
This commit is contained in:
parent
cec64b77ca
commit
19750a5430
@ -85,10 +85,13 @@ This version of CentOS is too old and unsupported."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$os" = "centos" ] && grep -qs "hwdsl2 VPN script" /etc/sysconfig/nftables.conf; then
|
||||
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
|
||||
if ! grep -q sbin <<< "$PATH"; then
|
||||
|
Loading…
Reference in New Issue
Block a user