bug fix to backups and manage services

This commit is contained in:
Usman Nasir
2019-07-18 14:08:00 +05:00
parent 44983fab3c
commit 33ed372cec
15 changed files with 187 additions and 105 deletions

View File

@@ -301,6 +301,13 @@ class ServerStatusUtil:
except:
pass
if os.path.exists('/etc/redhat-release'):
command = 'yum remove -y openlitespeed'
else:
command = "apt-get -y remove openlitespeed"
ServerStatusUtil.executioner(command, FNULL)
logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath,
"OpenLiteSpeed removed.\n", 1)