mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-04 06:27:11 +08:00
fix: osh-cleanup-guest-key-access.pl: load proper config file
This commit is contained in:
parent
6d3bd00d4c
commit
d254ad0ba0
1 changed files with 2 additions and 2 deletions
|
@ -21,13 +21,13 @@ if (OVH::Bastion::config('readOnlySlaveMode')->value) {
|
|||
}
|
||||
|
||||
$fnret = OVH::Bastion::load_configuration_file(
|
||||
file => OVH::Bastion::main_configuration_directory() . "/osh-cleanup-guest-access.conf",
|
||||
file => OVH::Bastion::main_configuration_directory() . "/osh-cleanup-guest-key-access.conf",
|
||||
secure => 1,
|
||||
);
|
||||
|
||||
my $config;
|
||||
if (!$fnret) {
|
||||
if (-e OVH::Bastion::main_configuration_directory() . "/osh-cleanup-guest-access.conf") {
|
||||
if (-e OVH::Bastion::main_configuration_directory() . "/osh-cleanup-guest-key-access.conf") {
|
||||
_warn "Error while loading configuration, continuing anyway with default values...";
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue