Skip to content

Commit

Permalink
bug fix: upgrade process
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Aug 27, 2019
1 parent b248133 commit 7686dbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,9 @@ def fixCyberPanelPermissions(self):
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']

Expand Down
3 changes: 3 additions & 0 deletions plogical/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,9 @@ def fixPermissions():
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:
Expand Down

0 comments on commit 7686dbc

Please sign in to comment.