From 7686dbcb7312f42ec95bc9b9454a540ea28eaa33 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 28 Aug 2019 02:25:39 +0500 Subject: [PATCH] bug fix: upgrade process --- install/install.py | 3 +++ plogical/upgrade.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/install/install.py b/install/install.py index e6399ea01..55d88804f 100755 --- a/install/install.py +++ b/install/install.py @@ -1174,6 +1174,9 @@ class preFlightsChecks: command = 'chmod 640 /etc/dovecot/dovecot-sql.conf.ext' subprocess.call(command, shell=True) + command = 'chmod 644 /etc/postfix/dynamicmaps.cf' + subprocess.call(command, shell=True) + fileM = ['/usr/local/lsws/FileManager/', '/usr/local/CyberCP/install/FileManager', '/usr/local/CyberCP/serverStatus/litespeed/FileManager', '/usr/local/lsws/Example/html/FileManager'] diff --git a/plogical/upgrade.py b/plogical/upgrade.py index c726f34cc..dd3ba377f 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1499,6 +1499,9 @@ class Upgrade: command = 'chmod 644 /etc/postfix/main.cf' subprocess.call(command, shell=True) + command = 'chmod 644 /etc/postfix/dynamicmaps.cf' + subprocess.call(command, shell=True) + Upgrade.stdOut("Permissions updated.") except BaseException, msg: