Avoid some 'check worked, restart did not' situations

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5721 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-28 01:52:45 +00:00
parent 7592f5cb2f
commit c13b504c14

View File

@ -769,15 +769,16 @@ sub compile_firewall( $ ) {
progress_message2 "$doing Accounting...";
setup_accounting;
progress_message2 'Generating Rule Matrix...';
generate_matrix;
generate_script_3;
if ( $command eq 'check' ) {
progress_message3 "Shorewall configuration verified";
} else {
#
# Finish the script.
#
progress_message2 'Generating Rule Matrix...';
generate_matrix;
generate_script_3;
finalize_object;
#
# And generate the auxilary config file