From bfa33d27141e4c854002dea400508b4fb57d5c89 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 18 Apr 2003 03:01:20 +0000 Subject: [PATCH] Remove temporary directory at completion of 'add' and 'delete' commands git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@540 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- STABLE/firewall | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/STABLE/firewall b/STABLE/firewall index de2e55df0..3c5f24883 100755 --- a/STABLE/firewall +++ b/STABLE/firewall @@ -4101,6 +4101,8 @@ add_to_zone() # $1 = [:] $2 = zone fi done < ${STATEDIR}/chains + rm -rf $TMP_DIR + echo "$1 added to zone $2" } @@ -4222,6 +4224,8 @@ delete_from_zone() # $1 = [:] $2 = zone fi done < ${STATEDIR}/chains + rm -rf $TMP_DIR + echo "$1 removed from zone $2" }