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
This commit is contained in:
teastep 2003-04-18 03:01:20 +00:00
parent 8b5cadbdff
commit bfa33d2714

View File

@ -4101,6 +4101,8 @@ add_to_zone() # $1 = <interface>[:<hosts>] $2 = zone
fi
done < ${STATEDIR}/chains
rm -rf $TMP_DIR
echo "$1 added to zone $2"
}
@ -4222,6 +4224,8 @@ delete_from_zone() # $1 = <interface>[:<hosts>] $2 = zone
fi
done < ${STATEDIR}/chains
rm -rf $TMP_DIR
echo "$1 removed from zone $2"
}