Allow CONFIG_PATH to be inherited

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1261 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-04-13 17:15:15 +00:00
parent be524997f1
commit 91337c3dcb
3 changed files with 7 additions and 3 deletions

View File

@ -11,3 +11,5 @@ Changes since 2.0.1
5) Apply Stijn Jonker's fix for CONFIG_PATH.
6) Restore logic to make 'find_file' check for SHOREWALL_DIR separately.
7) Allow CONFIG_PATH to be inherited.

View File

@ -5710,7 +5710,7 @@ do_initialize() {
DISABLE_IPV6=
BRIDGING=
DYNAMIC_ZONES=
CONFIG_PATH=/etc/shorewall:/usr/share/shorewall
[ -n "$CONFIG_PATH" ] || CONFIG_PATH=/etc/shorewall:/usr/share/shorewall
stopping=
have_mutex=

View File

@ -631,7 +631,7 @@ FIREWALL=$SHARED_DIR/firewall
FUNCTIONS=$SHARED_DIR/functions
VERSION_FILE=$SHARED_DIR/version
HELP=$SHARED_DIR/help
CONFIG_PATH=/etc/shorewall:/usr/share/shorewall
[ -n "$CONFIG_PATH" ] || CONFIG_PATH=/etc/shorewall:/usr/share/shorewall
if [ -f $FUNCTIONS ]; then
. $FUNCTIONS
@ -649,7 +649,9 @@ else
exit 2
fi
[ -z "$CONFIG_PATH" ] && CONFIG_PATH=/etc/shorewall:/usr/share/shorewall
[ -n "$CONFIG_PATH" ] || CONFIG_PATH=/etc/shorewall:/usr/share/shorewall
export CONFIG_PATH
[ -z "${STATEDIR}" ] && STATEDIR=/var/state/shorewall