Skip to content

Commit b427f99

Browse files
committed
remove systemd-resolvd on cent8
1 parent 8e8bff5 commit b427f99

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

install/installCyberPanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def installPureFTPDConfigurations(self, mysql):
488488
def installPowerDNS(self):
489489
try:
490490

491-
if self.distro == ubuntu:
491+
if self.distro == ubuntu or self.distro == cent8:
492492
command = 'systemctl stop systemd-resolved'
493493
install.preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
494494
command = 'systemctl disable systemd-resolved.service'

serverStatus/serverStatusUtil.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,12 @@ def switchTOLSWS(licenseKey):
310310
pass
311311

312312
if os.path.exists('/etc/redhat-release'):
313-
command = 'yum remove -y openlitespeed'
313+
314+
command = 'yum -y erase openlitespeed'
314315
else:
315316
command = "apt-get -y remove openlitespeed"
316317

317-
ServerStatusUtil.executioner(command, FNULL)
318+
ServerStatusUtil.executioner(command, statusFile)
318319

319320
logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath,
320321
"OpenLiteSpeed removed.\n", 1)

0 commit comments

Comments
 (0)