Fix wrong configuration line in spamassassin.
This commit is contained in:
@@ -29,7 +29,7 @@ class Spamassassin(base.Installer):
|
|||||||
context = super(Spamassassin, self).get_template_context()
|
context = super(Spamassassin, self).get_template_context()
|
||||||
if self.dbengine == "postgres":
|
if self.dbengine == "postgres":
|
||||||
store_module = "Mail::SpamAssassin::BayesStore::PgSQL"
|
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:
|
else:
|
||||||
store_module = "Mail::SpamAssassin::BayesStore::MySQL"
|
store_module = "Mail::SpamAssassin::BayesStore::MySQL"
|
||||||
dsn = "DBI:mysql:{}:{}".format(self.dbname, self.dbhost)
|
dsn = "DBI:mysql:{}:{}".format(self.dbname, self.dbhost)
|
||||||
|
|||||||
Reference in New Issue
Block a user