mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-20 11:51:23 +02:00
bug fix: mail reset ubuntu 20
This commit is contained in:
@@ -1238,6 +1238,15 @@ class MailServerManagerUtils(multi.Thread):
|
||||
|
||||
command = "systemctl restart dovecot"
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
## For ubuntu 20
|
||||
|
||||
if ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu20:
|
||||
|
||||
command = "sed -i 's|daemon_directory = /usr/libexec/postfix|daemon_directory = /usr/lib/postfix/sbin|g' /etc/postfix/main.cf"
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
|
||||
except BaseException as msg:
|
||||
logging.CyberCPLogFileWriter.statusWriter(self.extraArgs['tempStatusPath'],
|
||||
'%s [setup_postfix_dovecot_config][404]' % (
|
||||
@@ -1574,7 +1583,6 @@ milter_default_action = accept
|
||||
return 1, 'All checks are OK.'
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
parser = argparse.ArgumentParser(description='CyberPanel Installer')
|
||||
|
||||
Reference in New Issue
Block a user