Drop dkim view before upgrade to prevent error.

see https://github.com/modoboa/modoboa/issues/2508
This commit is contained in:
Antoine Nguyen
2022-10-05 18:08:43 +02:00
parent 2e1e4ca7a1
commit dbac16ee17
2 changed files with 16 additions and 1 deletions

View File

@@ -97,7 +97,8 @@ class Opendkim(base.Installer):
'SOCKET="inet:12345@localhost"',
]))
""" Make sure opendkim is started after postgresql and mysql, respectively. """
# Make sure opendkim is started after postgresql and mysql,
# respectively.
if (self.dbengine != "postgres" and package.backend.FORMAT == "deb"):
dbservice = "mysql.service"
elif (self.dbengine != "postgres" and package.backend.FORMAT != "deb"):