bug fix: change access logs permissions for lscp

This commit is contained in:
Usman Nasir
2020-09-16 21:06:04 +05:00
parent d6e1680eb9
commit 7bd6135617
2 changed files with 6 additions and 0 deletions

View File

@@ -626,6 +626,9 @@ class preFlightsChecks:
command = 'chmod 640 /etc/pdns/pdns.conf'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
command = 'chmod 640 /usr/local/lscp/cyberpanel/logs/access.log'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
def install_unzip(self):
self.stdOut("Install unzip")
try:

View File

@@ -1799,6 +1799,9 @@ imap_folder_list_limit = 0
command = 'chmod 640 /etc/pdns/pdns.conf'
Upgrade.executioner(command, 0)
command = 'chmod 640 /usr/local/lscp/cyberpanel/logs/access.log'
Upgrade.executioner(command, 0)
Upgrade.stdOut("Permissions updated.")