diff --git a/manifest/usr/bin/dmarcts-report-parser.conf b/manifest/usr/bin/dmarcts-report-parser.conf index f6f1b29..57ae581 100644 --- a/manifest/usr/bin/dmarcts-report-parser.conf +++ b/manifest/usr/bin/dmarcts-report-parser.conf @@ -13,7 +13,7 @@ $dbuser = $ENV{'REPORT_DB_USER'}; $dbpass = $ENV{'REPORT_DB_PASS'}; $dbhost = $ENV{'REPORT_DB_HOST'}; # Set the hostname if we can't connect to the local socket. $dbport = $ENV{'REPORT_DB_PORT'} // 3306; -$dbtype = $ENV{'REPORT_DB_TYPE'} // 'mysql'; +$dbtype = $ENV{'REPORT_DB_TYPE'} eq 'pgsql' ? 'Pg' : 'mysql'; if(exists $ENV{PARSER_IMAP_SERVER_WITH_PORT} && defined $ENV{PARSER_IMAP_SERVER_WITH_PORT}) { my @server_attr = split ':', $ENV{PARSER_IMAP_SERVER_WITH_PORT};