]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
convert-to-location: Regenerate firewall chains.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 11 Jul 2020 10:11:02 +0000 (12:11 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Jul 2020 05:31:41 +0000 (05:31 +0000)
The firewall chain for location based rules has been renamed to
LOCATIONBLOCK and therefore the fiewall needs to be restarted and
the chains regenerated.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/scripts/convert-to-location

index db61d3c79bee36975426d7cf228235a3fec08575..9149b854d32c011bec8c621474d35bf10d0bb87f 100755 (executable)
@@ -44,6 +44,9 @@ if [ -f "$FW_CONF_DIR/geoipblock" ]; then
 
        # Rename file to the new name.
        mv "$HOSTS_CONF_DIR/customgeoipgrp" "$HOSTS_CONF_DIR/customlocationgrp"
+
+       # Regenerate firewall chains.
+       /etc/init.d/firewall restart
 fi
 
 # Finished.