Unverified Commit 0807b797 authored by Luc Didry's avatar Luc Didry
Browse files

#609 — Check db_type conf agains regex in sympa.pl --health_check

parent 68a5a224
......@@ -219,6 +219,13 @@ if ($main::options{'upgrade_config_location'}) {
## Preliminary check of db_type
unless ($Conf::Conf{'db_type'} and $Conf::Conf{'db_type'} =~ /\A\w+\z/) {
die sprintf
"Database type \"%s\" defined in sympa.conf seems incorrect. Verify db_xxx parameters in sympa.conf\n",
## Check database connectivity and probe database
unless (Sympa::DatabaseManager::probe_db()) {
die sprintf
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment