Set g_export before calling get_config()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-11-14 13:46:41 -08:00
parent 89d6009200
commit d22210c074
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1540,6 +1540,8 @@ remote_reload_command() # $* = original arguments less the command.
litedir="${VARDIR}-lite"
fi
g_export=Yes
if [ -f $g_shorewalldir/${PRODUCT}.conf ]; then
if [ -f $g_shorewalldir/params ]; then
. $g_shorewalldir/params
@ -1579,8 +1581,6 @@ remote_reload_command() # $* = original arguments less the command.
file=$(resolve_file $g_shorewalldir/firewall)
g_export=Yes
program=$sbindir/${PRODUCT}-lite
#
# Handle nonstandard remote VARDIR