Update from master

This commit is contained in:
Spitap
2022-09-19 15:39:05 +02:00
17 changed files with 56 additions and 28 deletions

View File

@@ -57,10 +57,12 @@ class Spamassassin(base.Installer):
context = super(Spamassassin, self).get_template_context()
if self.dbengine == "postgres":
store_module = "Mail::SpamAssassin::BayesStore::PgSQL"
dsn = "DBI:Pg:dbname={};host={}".format(self.dbname, self.dbhost)
dsn = "DBI:Pg:dbname={};host={};port={}".format(
self.dbname, self.dbhost, self.dbport)
else:
store_module = "Mail::SpamAssassin::BayesStore::MySQL"
dsn = "DBI:mysql:{}:{}".format(self.dbname, self.dbhost)
dsn = "DBI:mysql:{}:{}:{}".format(
self.dbname, self.dbhost, self.dbport)
context.update({
"store_module": store_module, "dsn": dsn, "dcc_enabled": "#"})
return context