mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
Merge branch 'v2.0.1' into v2.0.2-dev
This commit is contained in:
@@ -596,6 +596,13 @@ class preFlightsChecks:
|
|||||||
command = "find /usr/local/CyberCP/ -name '*.pyc' -delete"
|
command = "find /usr/local/CyberCP/ -name '*.pyc' -delete"
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
|
if self.distro == cent8:
|
||||||
|
command = 'chown root:pdns /etc/pdns/pdns.conf'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
|
command = 'chmod 640 /etc/pdns/pdns.conf'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
def install_unzip(self):
|
def install_unzip(self):
|
||||||
self.stdOut("Install unzip")
|
self.stdOut("Install unzip")
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -1705,6 +1705,14 @@ class Upgrade:
|
|||||||
command = "find /usr/local/CyberCP/ -name '*.pyc' -delete"
|
command = "find /usr/local/CyberCP/ -name '*.pyc' -delete"
|
||||||
Upgrade.executioner(command, 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 = 'chmod 640 /etc/pdns/pdns.conf'
|
||||||
|
Upgrade.executioner(command, 0)
|
||||||
|
|
||||||
Upgrade.stdOut("Permissions updated.")
|
Upgrade.stdOut("Permissions updated.")
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
|
|||||||
Reference in New Issue
Block a user