From f80e2d972dabbbd4c9e8c0d16e1b430438ec5e30 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 29 Oct 2002 03:24:38 +0000 Subject: [PATCH] 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 --- Shorewall/shorewall | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/shorewall b/Shorewall/shorewall index dc4352a0e..67741839f 100755 --- a/Shorewall/shorewall +++ b/Shorewall/shorewall @@ -717,6 +717,8 @@ case "$1" in [ $# -ne 1 ] && usage 1 mutex_on 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 echo "Dynamic Rules Saved" else