mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-27 13:11:57 +02:00
Correct $LOG_LEVEL expansion
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5729be6431
commit
d9071c5308
@ -5489,6 +5489,14 @@ sub process_shorewall_conf( $$ ) {
|
|||||||
# Config file update requires that the option values not have
|
# Config file update requires that the option values not have
|
||||||
# Shell variables expanded. We do that now.
|
# Shell variables expanded. We do that now.
|
||||||
#
|
#
|
||||||
|
# We must first make LOG_LEVEL a variable because the order in which
|
||||||
|
# the values are processed below is not the order in which they appear
|
||||||
|
# in the config file.
|
||||||
|
#
|
||||||
|
my %log_level = ( LOG_LEVEL => $config{LOG_LEVEL} );
|
||||||
|
|
||||||
|
add_variables( %log_level );
|
||||||
|
|
||||||
for ( values %config ) {
|
for ( values %config ) {
|
||||||
if ( supplied $_ ) {
|
if ( supplied $_ ) {
|
||||||
expand_variables( $_ ) unless /^'(.+)'$/;
|
expand_variables( $_ ) unless /^'(.+)'$/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user