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

add configuration sanity checks in cli application

parent 1708a031
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,12 @@ if (!$configuration) {
die Config::Tiny->errstr() . "\n";
}
die "no database defined in configuration, aborting\n"
if !$configuration->{database};
die "no federation defined in configuration, aborting\n"
if !$configuration->{federations};
AccountManager::DB->register_db(
driver => $configuration->{database}->{type},
database => $configuration->{database}->{name},
......
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