mirror of
https://github.com/hwdsl2/wireguard-install.git
synced 2024-06-20 09:35:39 +02:00
Add check for nftables
This commit is contained in:
parent
a209594d6f
commit
b79880f219
|
@ -81,6 +81,11 @@ 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
|
||||
fi
|
||||
|
||||
# Detect environments where $PATH does not include the sbin directories
|
||||
if ! grep -q sbin <<< "$PATH"; then
|
||||
echo '$PATH does not include sbin. Try using "su -" instead of "su".'
|
||||
|
|
Loading…
Reference in New Issue
Block a user