From e74613fab0ef3524d4571fb4f4d923785293f70b Mon Sep 17 00:00:00 2001 From: usmannasir <01-134132-158@student.bahria.edu.pk> Date: Wed, 7 Nov 2018 12:14:38 +0500 Subject: [PATCH] intending error --- install/install.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/install/install.py b/install/install.py index db99d5717..499f170fb 100644 --- a/install/install.py +++ b/install/install.py @@ -2038,6 +2038,10 @@ class preFlightsChecks: cmd = shlex.split(command) res = subprocess.call(cmd) + command = "mkdir -p /etc/pki/dovecot/certs/" + cmd = shlex.split(command) + res = subprocess.call(cmd) + command = "mkdir -p /etc/opendkim/keys/" cmd = shlex.split(command) res = subprocess.call(cmd) @@ -2045,6 +2049,9 @@ class preFlightsChecks: command = "sed -i 's/auth_mechanisms = plain/#auth_mechanisms = plain/g' /etc/dovecot/conf.d/10-auth.conf" subprocess.call(shlex.split(command)) + command = "systemctl restart dovecot" + subprocess.call(shlex.split(command)) + logging.InstallLog.writeToFile("Postfix and Dovecot configured") @@ -2845,12 +2852,12 @@ class preFlightsChecks: preFlightsChecks.stdOut("Succcessfully installed opendkim!") break - if self.distro == ubuntu: - command = 'apt install opendkim-tools' - subprocess.call(shlex.split(command)) + if self.distro == ubuntu: + command = 'apt install opendkim-tools' + subprocess.call(shlex.split(command)) - command = 'mkdir -p /etc/opendkim/keys/' - subprocess.call(shlex.split(command)) + command = 'mkdir -p /etc/opendkim/keys/' + subprocess.call(shlex.split(command)) except OSError, msg: @@ -3417,4 +3424,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file