Merge branch 'v2.0.1' into v2.0.2-dev

This commit is contained in:
Usman Nasir
2020-06-22 11:14:55 +05:00
2 changed files with 15 additions and 0 deletions

View File

@@ -1705,6 +1705,14 @@ class Upgrade:
command = "find /usr/local/CyberCP/ -name '*.pyc' -delete"
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 = 'chmod 640 /etc/pdns/pdns.conf'
Upgrade.executioner(command, 0)
Upgrade.stdOut("Permissions updated.")
except BaseException as msg: