Fix Webmail [AUTHENTICATIONFAILED] on MySQL

Fix Webmail (['[AUTHENTICATIONFAILED] Authentication failed.']) with MySQL database.
This commit is contained in:
emsit
2015-10-31 14:00:50 +01:00
parent 08772f8dc5
commit 508754c961

View File

@@ -50,8 +50,7 @@ class Dovecot(base.Installer):
def post_run(self):
"""Additional tasks."""
if self.dbengine != "postgres":
return
if self.dbengine == "postgres":
dbname = self.config.get("modoboa", "dbname")
dbuser = self.config.get("modoboa", "dbuser")
dbpassword = self.config.get("modoboa", "dbpassword")