diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index c51904edd..8e43a5aec 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -488,7 +488,7 @@ class InstallCyberPanel: def installPowerDNS(self): try: - if self.distro == ubuntu: + if self.distro == ubuntu or self.distro == cent8: command = 'systemctl stop systemd-resolved' install.preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) command = 'systemctl disable systemd-resolved.service' diff --git a/serverStatus/serverStatusUtil.py b/serverStatus/serverStatusUtil.py index 44d19bb54..d0deb1533 100755 --- a/serverStatus/serverStatusUtil.py +++ b/serverStatus/serverStatusUtil.py @@ -310,11 +310,12 @@ class ServerStatusUtil: pass if os.path.exists('/etc/redhat-release'): - command = 'yum remove -y openlitespeed' + + command = 'yum -y erase openlitespeed' else: command = "apt-get -y remove openlitespeed" - ServerStatusUtil.executioner(command, FNULL) + ServerStatusUtil.executioner(command, statusFile) logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath, "OpenLiteSpeed removed.\n", 1)