fix prepare_nftables

This commit is contained in:
pvincent
2024-03-16 11:47:46 +04:00
parent 35d5eb40a0
commit 8febf48a2c
+1 -1
View File
@@ -100,7 +100,7 @@ function disable_all_signals {
function prepare_nftables() { function prepare_nftables() {
local PREFIX="miaou: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 ..." echo "installing nftables ..."
sudo apt install -y nftables sudo apt install -y nftables
sudo cp -f "$MIAOU_BASEDIR/templates/hardened/nftables.conf" /etc/ sudo cp -f "$MIAOU_BASEDIR/templates/hardened/nftables.conf" /etc/