mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 16:13:18 +01:00
Automatically create the /var/lib/shorewall directory during 'save' processing
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@315 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
eef8a3dc72
commit
f80e2d972d
@ -717,6 +717,8 @@ case "$1" in
|
|||||||
[ $# -ne 1 ] && usage 1
|
[ $# -ne 1 ] && usage 1
|
||||||
mutex_on
|
mutex_on
|
||||||
if qt iptables -L shorewall -n; then
|
if qt iptables -L shorewall -n; then
|
||||||
|
[ -d /var/lib/shorewall ] || mkdir /var/lib/shorewall
|
||||||
|
|
||||||
if iptables -L dynamic -n > /var/lib/shorewall/save; then
|
if iptables -L dynamic -n > /var/lib/shorewall/save; then
|
||||||
echo "Dynamic Rules Saved"
|
echo "Dynamic Rules Saved"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user