mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 19:54:06 +01:00
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:
parent
ece85d9210
commit
d935d23885
@ -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.
|
||||
|
@ -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-$$
|
||||
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user