mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Use a function to load configuration files
Signed-off-by: Matt Darfeuille <matdarf@gmail.com> Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
98d5bf8f55
commit
99be0ce970
@ -1617,14 +1617,9 @@ remote_commands() # $* = original arguments less the command.
|
||||
|
||||
g_export=Yes
|
||||
|
||||
if [ -f $g_shorewalldir/${PRODUCT}.conf ]; then
|
||||
if [ -f $g_shorewalldir/params ]; then
|
||||
. $g_shorewalldir/params
|
||||
fi
|
||||
|
||||
ensure_config_path
|
||||
|
||||
get_config No
|
||||
get_config Yes
|
||||
|
||||
g_haveconfig=Yes
|
||||
|
||||
@ -1632,9 +1627,6 @@ remote_commands() # $* = original arguments less the command.
|
||||
system=$FIREWALL
|
||||
[ -n "$system" ] || fatal_error "No system name given and the FIREWALL option is not set"
|
||||
fi
|
||||
else
|
||||
fatal_error "$g_shorewalldir/$PRODUCT.conf does not exist"
|
||||
fi
|
||||
|
||||
if [ -z "$getcaps" ]; then
|
||||
capabilities=$(find_file capabilities)
|
||||
|
Loading…
x
Reference in New Issue
Block a user