From b95db312b5a5ed19e17bd15cff7cae23aa9f99b4 Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 26 Apr 2007 20:27:00 +0000 Subject: [PATCH] Fix alias handling -- Take 2 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6123 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-shell/compiler | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shorewall-shell/compiler b/Shorewall-shell/compiler index c40bc80a6..bb1e197e1 100755 --- a/Shorewall-shell/compiler +++ b/Shorewall-shell/compiler @@ -5507,16 +5507,16 @@ __EOF__ save_progress_message "Activating Rules..." activate_rules - if [ -n "$ALIASES_TO_ADD" ]; then - save_command add_ip_aliases $ALIASES_TO_ADD - fi - for file in chains nat proxyarp zones; do save_command "cat > \${VARDIR}/$file $LEFTSHIFT __EOF__" cat $STATEDIR/$file >&3 save_command_unindented __EOF__ done + if [ -n "$ALIASES_TO_ADD" ]; then + save_command add_ip_aliases $ALIASES_TO_ADD + fi + cat >&3 << __EOF__ if [ \$COMMAND = restore ]; then