forked from extern/shorewall_code
Make use of USE_LOCAL_MODULES independent of export
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
0da549cef2
commit
2cdb306e0e
@ -336,7 +336,7 @@ sub generate_script_3($) {
|
|||||||
|
|
||||||
save_progress_message 'Initializing...';
|
save_progress_message 'Initializing...';
|
||||||
|
|
||||||
if ( $export ) {
|
if ( $export || $config{USE_LOCAL_MODULES} ) {
|
||||||
my $fn = find_file( $config{LOAD_HELPERS_ONLY} ? 'helpers' : 'modules' );
|
my $fn = find_file( $config{LOAD_HELPERS_ONLY} ? 'helpers' : 'modules' );
|
||||||
|
|
||||||
if ( -f $fn && ( $config{USE_LOCAL_MODULES} || ! $fn =~ "^$globals{SHAREDIR}/" ) ) {
|
if ( -f $fn && ( $config{USE_LOCAL_MODULES} || ! $fn =~ "^$globals{SHAREDIR}/" ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user