diff --git a/install/install.py b/install/install.py index ce20ed399..33d10de3d 100755 --- a/install/install.py +++ b/install/install.py @@ -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: diff --git a/plogical/upgrade.py b/plogical/upgrade.py index ca87361a2..5bea017d4 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -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.")