diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 3dfbcdd4a..a64fa8fe7 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -7917,7 +7917,7 @@ sub save_dynamic_chains() { if ( $config{SAVE_COUNTERS} ) { my $utility = $family == F_IPV4 ? 'iptables-restore' : 'ip6tables-restore'; - emit( 'if [ "$COMMAND" = restart; then', + emit( 'if [ "$COMMAND" = restart ]; then', " ${tool}-save --counters > \${VARDIR}/.$utility}-input", "fi\n" );