Fix wrong configuration line in spamassassin.

This commit is contained in:
Antoine Nguyen
2016-01-27 15:46:39 +01:00
parent 6e3a2ab620
commit e98c0408d2

View File

@@ -29,7 +29,7 @@ class Spamassassin(base.Installer):
context = super(Spamassassin, self).get_template_context()
if self.dbengine == "postgres":
store_module = "Mail::SpamAssassin::BayesStore::PgSQL"
dsn = "DBI:Pg:db_name={};host={}".format(self.dbname, self.dbhost)
dsn = "DBI:Pg:dbname={};host={}".format(self.dbname, self.dbhost)
else:
store_module = "Mail::SpamAssassin::BayesStore::MySQL"
dsn = "DBI:mysql:{}:{}".format(self.dbname, self.dbhost)