Correct syntax error in the generated script

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-10-30 19:59:20 -07:00
parent f08803e293
commit 2ffc97867c

View File

@ -7917,7 +7917,7 @@ sub save_dynamic_chains() {
if ( $config{SAVE_COUNTERS} ) { if ( $config{SAVE_COUNTERS} ) {
my $utility = $family == F_IPV4 ? 'iptables-restore' : 'ip6tables-restore'; 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", " ${tool}-save --counters > \${VARDIR}/.$utility}-input",
"fi\n" ); "fi\n" );