Debian 11 (bullseye) uses /etc/nftables.nft as well

This commit is contained in:
Dominique Roux 2021-07-01 10:37:42 +02:00
parent c827bdf77c
commit ea69c4c622

View file

@ -1,10 +1,17 @@
initscript="$__type/files/nftables-init"
os=$(cat $__global/explorer/os)
os_version=$(cat "$__global/explorer/os_version")
case "$os" in
debian)
conf=/etc/nftables.conf
case "$os_version" in
11*)
conf=/etc/nftables.nft
;;
*)
conf=/etc/nftables.conf
;;
;;
*)
conf=/etc/nftables.nft