diff --git a/install/install.py b/install/install.py index 462ae5a3f..ce20ed399 100755 --- a/install/install.py +++ b/install/install.py @@ -619,7 +619,7 @@ class preFlightsChecks: command = "find /usr/local/CyberCP/ -name '*.pyc' -delete" preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) - if self.distro == cent8: + if self.distro == cent8 or self.distro == centos: command = 'chown root:pdns /etc/pdns/pdns.conf' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index a5b0dba7d..a15efb3e0 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1793,12 +1793,12 @@ imap_folder_list_limit = 0 Upgrade.executioner(command, 0) if os.path.exists(Upgrade.CentOSPath): - if Upgrade.decideCentosVersion() == CENTOS8: - command = 'chown root:pdns /etc/pdns/pdns.conf' - Upgrade.executioner(command, 0) + command = 'chown root:pdns /etc/pdns/pdns.conf' + Upgrade.executioner(command, 0) + + command = 'chmod 640 /etc/pdns/pdns.conf' + Upgrade.executioner(command, 0) - command = 'chmod 640 /etc/pdns/pdns.conf' - Upgrade.executioner(command, 0) Upgrade.stdOut("Permissions updated.")