Handle default shorewallrc location

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-05-07 16:55:17 -07:00
parent 5d7442e9e9
commit fd1d6cf935

View File

@ -782,8 +782,7 @@ sub initialize( $;$ ) {
CONFDIR => '/etc/',
);
if ( $shorewallrc ) {
process_shorewallrc( $shorewallrc );
process_shorewallrc( $shorewallrc ) if $shorewallrc;
$globals{SHAREDIRPL} = "$shorewallrc{SHAREDIR}/shorewall/";
@ -799,7 +798,6 @@ sub initialize( $;$ ) {
$globals{PRODUCT} = 'shorewall6';
$config{IP6TABLES} = undef;
}
}
}
my @abbr = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec );