Make use of USE_LOCAL_MODULES independent of export

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-02-06 08:15:16 -08:00
parent 28eca3fb21
commit 106f23634c

View File

@ -336,7 +336,7 @@ sub generate_script_3($) {
save_progress_message 'Initializing...';
if ( $export ) {
if ( $export || $config{USE_LOCAL_MODULES} ) {
my $fn = find_file( $config{LOAD_HELPERS_ONLY} ? 'helpers' : 'modules' );
if ( -f $fn && ( $config{USE_LOCAL_MODULES} || ! $fn =~ "^$globals{SHAREDIR}/" ) ) {