From 8febf48a2c4fc52c8d53bebff116296feb143658 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 16 Mar 2024 11:47:46 +0400 Subject: [PATCH] fix prepare_nftables --- lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index 997d9e1..757ec79 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -100,7 +100,7 @@ function disable_all_signals { function prepare_nftables() { local PREFIX="miaou:nftables" - if [[ ! -f /etc/nftables.rules.d/firewall.table ]]; then + if ! diff -q "$MIAOU_BASEDIR/templates/hardened/nftables.conf" /etc/nftables.conf 2>/dev/null; then echo "installing nftables ..." sudo apt install -y nftables sudo cp -f "$MIAOU_BASEDIR/templates/hardened/nftables.conf" /etc/