Skip to content

Commit 4000159

Browse files
committed
bug fix: mail reset ubuntu 20
1 parent de1ab92 commit 4000159

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

plogical/mailUtilities.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,15 @@ def setup_postfix_dovecot_config(self):
12381238

12391239
command = "systemctl restart dovecot"
12401240
ProcessUtilities.executioner(command)
1241+
1242+
## For ubuntu 20
1243+
1244+
if ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu20:
1245+
1246+
command = "sed -i 's|daemon_directory = /usr/libexec/postfix|daemon_directory = /usr/lib/postfix/sbin|g' /etc/postfix/main.cf"
1247+
ProcessUtilities.executioner(command)
1248+
1249+
12411250
except BaseException as msg:
12421251
logging.CyberCPLogFileWriter.statusWriter(self.extraArgs['tempStatusPath'],
12431252
'%s [setup_postfix_dovecot_config][404]' % (
@@ -1574,7 +1583,6 @@ def debugEmailForSite(self, websiteName):
15741583
return 1, 'All checks are OK.'
15751584

15761585

1577-
15781586
def main():
15791587

15801588
parser = argparse.ArgumentParser(description='CyberPanel Installer')

0 commit comments

Comments
 (0)