mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
remove systemd-resolvd on cent8
This commit is contained in:
@@ -488,7 +488,7 @@ class InstallCyberPanel:
|
|||||||
def installPowerDNS(self):
|
def installPowerDNS(self):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if self.distro == ubuntu:
|
if self.distro == ubuntu or self.distro == cent8:
|
||||||
command = 'systemctl stop systemd-resolved'
|
command = 'systemctl stop systemd-resolved'
|
||||||
install.preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
command = 'systemctl disable systemd-resolved.service'
|
command = 'systemctl disable systemd-resolved.service'
|
||||||
|
|||||||
@@ -310,11 +310,12 @@ class ServerStatusUtil:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if os.path.exists('/etc/redhat-release'):
|
if os.path.exists('/etc/redhat-release'):
|
||||||
command = 'yum remove -y openlitespeed'
|
|
||||||
|
command = 'yum -y erase openlitespeed'
|
||||||
else:
|
else:
|
||||||
command = "apt-get -y remove openlitespeed"
|
command = "apt-get -y remove openlitespeed"
|
||||||
|
|
||||||
ServerStatusUtil.executioner(command, FNULL)
|
ServerStatusUtil.executioner(command, statusFile)
|
||||||
|
|
||||||
logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath,
|
logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath,
|
||||||
"OpenLiteSpeed removed.\n", 1)
|
"OpenLiteSpeed removed.\n", 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user