mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-26 19:31:17 +02:00
bug fix: pdns.conf permissions during install/upgrade
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user