mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
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:
parent
be524997f1
commit
91337c3dcb
@ -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.
|
||||
|
@ -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=
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user