OK to DONE
This commit is contained in:
+2
-2
@@ -279,12 +279,12 @@ function build_nftables() {
|
||||
tera -t "$MIAOU_BASEDIR/templates/nftables/lxd.table.j2" "$EXPANDED_CONF" -o "$MIAOU_CONFIGDIR/nftables.rules.d/lxd.table" &>/dev/null
|
||||
fi
|
||||
|
||||
if ! diff -q "$MIAOU_CONFIGDIR/nftables.rules.d/lxd.table" /etc/nftables.rules.d/lxd.table; then
|
||||
if ! diff -q "$MIAOU_CONFIGDIR/nftables.rules.d/lxd.table" /etc/nftables.rules.d/lxd.table &>/dev/null; then
|
||||
sudo_required "reloading nftables"
|
||||
echo -n "reloading nftables..."
|
||||
sudo cp "$MIAOU_CONFIGDIR/nftables.rules.d/lxd.table" /etc/nftables.rules.d/lxd.table
|
||||
sudo systemctl reload nftables
|
||||
PREFIX="" echo OK
|
||||
PREFIX="" echo DONE
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user