From 2ffc97867cda23fd2a5ee4a3e6399bb73c2d5afd Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 30 Oct 2014 19:59:20 -0700 Subject: [PATCH] Correct syntax error in the generated script Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" );