forked from extern/shorewall_code
Handle default shorewallrc location
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5d7442e9e9
commit
fd1d6cf935
@ -782,23 +782,21 @@ sub initialize( $;$ ) {
|
|||||||
CONFDIR => '/etc/',
|
CONFDIR => '/etc/',
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( $shorewallrc ) {
|
process_shorewallrc( $shorewallrc ) if $shorewallrc;
|
||||||
process_shorewallrc( $shorewallrc );
|
|
||||||
|
|
||||||
$globals{SHAREDIRPL} = "$shorewallrc{SHAREDIR}/shorewall/";
|
$globals{SHAREDIRPL} = "$shorewallrc{SHAREDIR}/shorewall/";
|
||||||
|
|
||||||
if ( $family == F_IPV4 ) {
|
if ( $family == F_IPV4 ) {
|
||||||
$globals{SHAREDIR} = "$shorewallrc{SHAREDIR}/shorewall";
|
$globals{SHAREDIR} = "$shorewallrc{SHAREDIR}/shorewall";
|
||||||
$globals{CONFDIR} = "$shorewallrc{CONFDIR}/shorewall";
|
$globals{CONFDIR} = "$shorewallrc{CONFDIR}/shorewall";
|
||||||
$globals{PRODUCT} = 'shorewall';
|
$globals{PRODUCT} = 'shorewall';
|
||||||
$config{IPTABLES} = undef;
|
$config{IPTABLES} = undef;
|
||||||
$validlevels{ULOG} = 'ULOG';
|
$validlevels{ULOG} = 'ULOG';
|
||||||
} else {
|
} else {
|
||||||
$globals{SHAREDIR} = "$shorewallrc{SHAREDIR}/shorewall6";
|
$globals{SHAREDIR} = "$shorewallrc{SHAREDIR}/shorewall6";
|
||||||
$globals{CONFDIR} = "$shorewallrc{CONFDIR}/shorewall6";
|
$globals{CONFDIR} = "$shorewallrc{CONFDIR}/shorewall6";
|
||||||
$globals{PRODUCT} = 'shorewall6';
|
$globals{PRODUCT} = 'shorewall6';
|
||||||
$config{IP6TABLES} = undef;
|
$config{IP6TABLES} = undef;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user