forked from extern/shorewall_code
Better fix for LITEDIR bug
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4145 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e1db37160b
commit
dadd6ad1ce
@ -1206,6 +1206,8 @@ fi
|
|||||||
ensure_config_path
|
ensure_config_path
|
||||||
export CONFIG_PATH
|
export CONFIG_PATH
|
||||||
|
|
||||||
|
[ -n "$LITEDIR" ] || { echo " ERROR: LITEDIR not defined in ${SHAREDIR}/configpath" >&2; exit 2; }
|
||||||
|
|
||||||
get_config
|
get_config
|
||||||
|
|
||||||
FIREWALL=$LITEDIR/firewall
|
FIREWALL=$LITEDIR/firewall
|
||||||
|
@ -219,8 +219,6 @@ ensure_config_path() {
|
|||||||
[ -f $F ] || { echo " ERROR: $F does not exist"; exit 2; }
|
[ -f $F ] || { echo " ERROR: $F does not exist"; exit 2; }
|
||||||
. $F
|
. $F
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$LITEDIR" ] || { echo " ERROR: LITEDIR not defined in $F"; exit 2; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -200,7 +200,6 @@ get_config() {
|
|||||||
# This block is avoided for compile for export and when the user isn't root
|
# This block is avoided for compile for export and when the user isn't root
|
||||||
#
|
#
|
||||||
export CONFIG_PATH
|
export CONFIG_PATH
|
||||||
export LITEDIR
|
|
||||||
|
|
||||||
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
||||||
|
|
||||||
@ -1306,6 +1305,8 @@ reload_command()
|
|||||||
{
|
{
|
||||||
local verbose=$(make_verbose)
|
local verbose=$(make_verbose)
|
||||||
|
|
||||||
|
[ -n "$LITEDIR" ] || { echo " ERROR: LITEDIR not defined in ${SHAREDIR}/configpath" >&2; exit 2; }
|
||||||
|
|
||||||
if shorewall $debugging $verbose compile -e $1 $1/firewall && \
|
if shorewall $debugging $verbose compile -e $1 $1/firewall && \
|
||||||
echo "Copying ${1}/firewall to ${2}:${LITEDIR}..." && \
|
echo "Copying ${1}/firewall to ${2}:${LITEDIR}..." && \
|
||||||
scp $1/firewall root@${2}:${LITEDIR}
|
scp $1/firewall root@${2}:${LITEDIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user