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

add --configuration option

parent bb0eab47
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ my %options;
GetOptions(
\%options,
'profile=s',
'configuration=s',
'contacts=s',
'delete',
'displayname=s',
......@@ -47,7 +48,9 @@ pod2usage(
-verbose => 0
) unless $action;
my $configuration = Config::Tiny->read('@sysconfdir@/manager.conf');
my $configuration_file =
$options{configuration} || '@sysconfdir@/manager.conf';
my $configuration = Config::Tiny->read($configuration_file);
AccountManager::DB->register_db(
driver => $configuration->{database}->{type},
......
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