bug fix: upgrade process

This commit is contained in:
Usman Nasir 2019-08-28 02:25:39 +05:00
parent b2481335b8
commit 7686dbcb73
2 changed files with 6 additions and 0 deletions

View File

@ -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']

View File

@ -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: