mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Fix for litedir
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a5c608e996
commit
a389aa01a8
@ -1362,8 +1362,7 @@ reload_command() # $* = original arguments less the command.
|
|||||||
sbindir=${SBINDIR}
|
sbindir=${SBINDIR}
|
||||||
local sharedir
|
local sharedir
|
||||||
sharedir=${SHAREDIR}
|
sharedir=${SHAREDIR}
|
||||||
|
local litedir
|
||||||
litedir=${VARLIB}/${g_program}-lite
|
|
||||||
|
|
||||||
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||||
option=$1
|
option=$1
|
||||||
@ -1468,6 +1467,12 @@ reload_command() # $* = original arguments less the command.
|
|||||||
|
|
||||||
g_export=Yes
|
g_export=Yes
|
||||||
|
|
||||||
|
temp=$(rsh_command ${g_program}-lite show config 2> /dev/null | grep ^LITEDIR | sed 's/LITEDIR is //')
|
||||||
|
|
||||||
|
[ -n "$temp" ] && litedir="$temp"
|
||||||
|
|
||||||
|
[ -n "$litedir" ] || litedir=${VARLIB}/${g_program}-lite
|
||||||
|
|
||||||
if compiler $g_debugging compiler $g_shorewalldir/firewall && \
|
if compiler $g_debugging compiler $g_shorewalldir/firewall && \
|
||||||
progress_message3 "Copying $file and ${file}.conf to ${system}:${litedir}..." && \
|
progress_message3 "Copying $file and ${file}.conf to ${system}:${litedir}..." && \
|
||||||
rcp_command "$g_shorewalldir/firewall $g_shorewalldir/firewall.conf" ${litedir}
|
rcp_command "$g_shorewalldir/firewall $g_shorewalldir/firewall.conf" ${litedir}
|
||||||
|
Loading…
Reference in New Issue
Block a user