Fix bad bug in 'generate'

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3245 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-01-07 16:33:17 +00:00
parent e15aec24ff
commit b17bc9f62e

View File

@ -8902,7 +8902,9 @@ generate_firewall() # $1 = File Name
RESTOREBASE=$(mktempfile /var/lib/shorewall) RESTOREBASE=$(mktempfile /var/lib/shorewall)
STATEDIR=$TMP_DIR STATEDIR=/var/lib/shorewall/.compiler
[ -d $STATEDIR ] || mkdir $STATEDIR
[ -n "$RESTOREBASE" ] || startup_error "Cannot create temporary file in /var/lib/shorewall" [ -n "$RESTOREBASE" ] || startup_error "Cannot create temporary file in /var/lib/shorewall"
@ -8935,13 +8937,16 @@ generate_firewall() # $1 = File Name
setup_providers $(find_file providers) setup_providers $(find_file providers)
[ -n "$ROUTEMARK_INTERFACES" ] && setup_routes [ -n "$ROUTEMARK_INTERFACES" ] && setup_routes
echo "Compiling NAT..."; setup_nat echo "Compiling NAT..."; setup_nat
echo "Compiling NETMAP..."; setup_netmap echo "Compiling NETMAP..."; setup_netmap
echo "Compiling Common Rules"; add_common_rules echo "Compiling Common Rules"; add_common_rules
save_progress_message "Restoring SYN Flood Protection..."
setup_syn_flood_chains setup_syn_flood_chains
save_progress_message "Restoring IPSEC management..."
setup_ipsec setup_ipsec
maclist_hosts=$(find_hosts_by_option maclist) maclist_hosts=$(find_hosts_by_option maclist)