mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
Remove temporary directory at completion of 'add' and 'delete' commands
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@541 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
bfa33d2714
commit
99cb231761
@ -4111,6 +4111,8 @@ add_to_zone() # $1 = <interface>[:<hosts>] $2 = zone
|
||||
fi
|
||||
done < ${STATEDIR}/chains
|
||||
|
||||
rm -rf $TMP_DIR
|
||||
|
||||
echo "$1 added to zone $2"
|
||||
}
|
||||
|
||||
@ -4232,6 +4234,8 @@ delete_from_zone() # $1 = <interface>[:<hosts>] $2 = zone
|
||||
fi
|
||||
done < ${STATEDIR}/chains
|
||||
|
||||
rm -rf $TMP_DIR
|
||||
|
||||
echo "$1 removed from zone $2"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user