Skip to content
Snippets Groups Projects
Commit b01c3036 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

use command-line option first for configuration file location

parent 7cba9a5b
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,10 @@ pod2usage(
-verbose => 0
) unless $action;
my $configuration_file = $ENV{ACCESS_CHECK_CONFIG} || 'conf/manager.conf';
my $configuration_file =
$options{configuration} ||
$ENV{ACCESS_CHECK_CONFIG} ||
curfile()->dirname()->sibling('conf', 'manager.conf');
my $configuration = Config::Tiny->read($configuration_file);
if (!$configuration) {
die Config::Tiny->errstr() . "\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment