mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-30 11:33:28 +01:00
Remove superfluous variables from generated script
This commit is contained in:
parent
65e4a5ff66
commit
abc9ab061a
@ -213,8 +213,7 @@ sub generate_script_2() {
|
|||||||
|
|
||||||
emit ( '[ -n "${COMMAND:=restart}" ]',
|
emit ( '[ -n "${COMMAND:=restart}" ]',
|
||||||
'[ -n "${VERBOSE:=0}" ]',
|
'[ -n "${VERBOSE:=0}" ]',
|
||||||
qq([ -n "\${RESTOREFILE:=$config{RESTOREFILE}}" ]),
|
qq([ -n "\${RESTOREFILE:=$config{RESTOREFILE}}" ]) );
|
||||||
'[ -n "$LOGFORMAT" ] || LOGFORMAT="Shorewall:%s:%s:"' );
|
|
||||||
|
|
||||||
emit ( qq(VERSION="$globals{VERSION}") ) unless $test;
|
emit ( qq(VERSION="$globals{VERSION}") ) unless $test;
|
||||||
|
|
||||||
|
@ -188,8 +188,7 @@ our %config;
|
|||||||
#
|
#
|
||||||
# Config options and global settings that are to be copied to output script
|
# Config options and global settings that are to be copied to output script
|
||||||
#
|
#
|
||||||
our @propagateconfig = qw/ DISABLE_IPV6 MODULESDIR MODULE_SUFFIX LOGFORMAT SUBSYSLOCK LOCKFILE /;
|
our @propagateconfig = qw/ DISABLE_IPV6 MODULESDIR MODULE_SUFFIX SUBSYSLOCK /;
|
||||||
our @propagateenv = qw/ LOGLIMIT LOGTAGONLY LOGRULENUMBERS /;
|
|
||||||
#
|
#
|
||||||
# From parsing the capabilities file or detecting capabilities
|
# From parsing the capabilities file or detecting capabilities
|
||||||
#
|
#
|
||||||
@ -2539,11 +2538,6 @@ sub propagateconfig() {
|
|||||||
my $value = $config{$option} || '';
|
my $value = $config{$option} || '';
|
||||||
emit "$option=\"$value\"";
|
emit "$option=\"$value\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
for my $option ( @propagateenv ) {
|
|
||||||
my $value = $globals{$option} || '';
|
|
||||||
emit "$option=\"$value\"";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -12,6 +12,10 @@ Changes in Shorewall 4.4.3
|
|||||||
|
|
||||||
6) Fix nested zones.
|
6) Fix nested zones.
|
||||||
|
|
||||||
|
7) Move all function declarations from prog.footer to prog.header
|
||||||
|
|
||||||
|
8) Remove superfluous variables from generated script
|
||||||
|
|
||||||
Changes in Shorewall 4.4.2
|
Changes in Shorewall 4.4.2
|
||||||
|
|
||||||
1) BUGFIX: Correct detection of Persistent SNAT support
|
1) BUGFIX: Correct detection of Persistent SNAT support
|
||||||
|
Loading…
Reference in New Issue
Block a user