Remove LITEDIR from shorewall.conf and determine it at runtime

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5288 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-01-24 19:18:49 +00:00
parent 2c9721638c
commit ad3a27fc24
3 changed files with 10 additions and 16 deletions

View File

@ -30,10 +30,6 @@ Release Highlights
Problems Corrected in 3.4.0 RC 1 Problems Corrected in 3.4.0 RC 1
None.
Other Changes in 3.4.0 RC 1
1) While most distributions store the Shorewall Lite compiled program 1) While most distributions store the Shorewall Lite compiled program
in /var/lib/shorewall/, Shorewall includes features that allow that in /var/lib/shorewall/, Shorewall includes features that allow that
location to be changed on a per-distribution basis. The default for location to be changed on a per-distribution basis. The default for
@ -51,12 +47,13 @@ Other Changes in 3.4.0 RC 1
from the firewall system so it is possible for that command to from the firewall system so it is possible for that command to
upload the compiled script to the wrong directory. upload the compiled script to the wrong directory.
To work around this problem, a LITEDIR option has been added to To work around this problem, Shorewall now determines the LITEDIR
shorewall.conf. By setting that variable appropriately in each setting on the firewall system and uses that setting for uploading
export directory, you can cause the "shorewall [re]load" command to the compiled script.
upload the script to the correct directory on each firewall system.
Note that the LITEDIR setting is commented out in shorewall.conf so Other Changes in 3.4.0 RC 1
you must uncomment it if you wish to assign it a value.
None.
Migration Considerations: Migration Considerations:

View File

@ -941,10 +941,9 @@ reload_command() # $* = original arguments less the command.
;; ;;
esac esac
if [ -f $directory/shorewall.conf ]; then litedir=$(ssh ${root}@${system} /sbin/shorewall-lite show config 2> /dev/null | grep ^LITEDIR | sed 's/LITEDIR is //')
litedir=$(grep '^\s*LITEDIR=' $directory/shorewall.conf | tail -n 1)
[ -n "$litedir" ] && LITEDIR=${litedir#*=} [ -n "$litedir" ] && LITEDIR=$litedir
fi
if [ -z "$getcaps" ]; then if [ -z "$getcaps" ]; then
SHOREWALL_DIR=$(resolve_file $directory) SHOREWALL_DIR=$(resolve_file $directory)

View File

@ -72,8 +72,6 @@ RESTOREFILE=
IPSECFILE=zones IPSECFILE=zones
#LITEDIR=/var/lib/shorewall-lite
############################################################################### ###############################################################################
# D E F A U L T A C T I O N S / M A C R O S # D E F A U L T A C T I O N S / M A C R O S
############################################################################### ###############################################################################