Create /var/lib/shorewall if it doesn't exist

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1334 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-05-17 15:12:02 +00:00
parent ece85d9210
commit d935d23885
3 changed files with 13 additions and 2 deletions

View File

@ -63,3 +63,7 @@ Changes since 2.0.1
30) Remove restore-$$ files.
31) Save 'loadmodule' commands in /var/lib/shorewall/restore-base.
32) Correct null common action handling.
33) Create /var/lib/shorewall if it doesn't exist.

View File

@ -2725,7 +2725,7 @@ process_actions1() {
case $temp in
ACCEPT|REJECT|DROP)
eval ${temp}_common=$xaction
if ! list_search $xaction $USEDACTIONS; then
if [ -n "$xaction" ] && ! list_search $xaction $USEDACTIONS; then
USEDACTIONS="$USEDACTIONS $xaction"
[ $COMMAND = check ] || createactionchain $xaction
fi
@ -5402,6 +5402,8 @@ define_firewall() # $1 = Command (Start or Restart)
verify_os_version
verify_ip
[ -d /var/lib/shorewall ] || mkdir -p /var/lib/shorewall
echo '#bin/sh' > /var/lib/shorewall/restore-$$
echo ". /usr/share/shorewall/functions" >> /var/lib/shorewall/restore-$$

View File

@ -1,4 +1,4 @@
Shorewall 2.0.2a
Shorewall 2.0.2b
----------------------------------------------------------------------
Problems Corrected since 2.0.1
@ -25,6 +25,11 @@ Problems Corrected since 2.0.2
2) The /var/lib/shorewall/restore script did not load the kernel
modules specified in /etc/shorewall/modules.
3) Specifying a null common action in /etc/shorewall/actions (e.g.,
:REJECT) results in a startup error.
4) If /var/lib/shorewall does not exist, shorewall start fails.
-----------------------------------------------------------------------
Issues when migrating from Shorewall 2.0.1 to Shorewall 2.0.2: