cent8 repos

This commit is contained in:
Usman Nasir
2019-12-18 13:39:32 +05:00
parent 2a995f477e
commit 4c9775c5af
2 changed files with 8 additions and 15 deletions

View File

@@ -359,9 +359,12 @@ class preFlightsChecks:
preFlightsChecks.stdOut("[ERROR] Exception during CyberPanel install") preFlightsChecks.stdOut("[ERROR] Exception during CyberPanel install")
os._exit(os.EX_SOFTWARE) os._exit(os.EX_SOFTWARE)
elif self.distro == cent8: elif self.distro == centos:
command = 'rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm' command = 'rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm'
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
elif self.distro == cent8:
command = 'rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm'
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
def enableEPELRepo(self): def enableEPELRepo(self):
command = 'yum -y install epel-release' command = 'yum -y install epel-release'
@@ -2219,10 +2222,10 @@ def main():
checks.enableEPELRepo() checks.enableEPELRepo()
checks.install_pip() checks.install_pip()
checks.install_python_dev() checks.install_python_dev()
checks.install_gcc() #checks.install_gcc()
if distro == centos: if distro == centos:
checks.install_python_setup_tools() checks.install_python_setup_tools()
checks.install_python_mysql_library() #checks.install_python_mysql_library()
import installCyberPanel import installCyberPanel

View File

@@ -41,19 +41,9 @@ class InstallCyberPanel:
command = 'yum install -y openlitespeed' command = 'yum install -y openlitespeed'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
else: else:
command = 'wget https://openlitespeed.org/packages/openlitespeed-1.5.0.tgz' command = 'yum install -y openlitespeed'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
command = 'tar -zxvf openlitespeed-*.tgz'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
os.chdir('openlitespeed')
command = './install.sh'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
os.chdir(self.cwd)
else: else:
try: try:
@@ -182,7 +172,7 @@ class InstallCyberPanel:
InstallCyberPanel.stdOut("LiteSpeed PHPs successfully installed!", 1) InstallCyberPanel.stdOut("LiteSpeed PHPs successfully installed!", 1)
## only php 71 ## only php 71
if self.distro == centos: if self.distro == centos or self.distro == cent8:
command = 'yum install lsphp71 lsphp71-json lsphp71-xmlrpc lsphp71-xml lsphp71-tidy lsphp71-soap lsphp71-snmp ' \ command = 'yum install lsphp71 lsphp71-json lsphp71-xmlrpc lsphp71-xml lsphp71-tidy lsphp71-soap lsphp71-snmp ' \
'lsphp71-recode lsphp71-pspell lsphp71-process lsphp71-pgsql lsphp71-pear lsphp71-pdo lsphp71-opcache ' \ 'lsphp71-recode lsphp71-pspell lsphp71-process lsphp71-pgsql lsphp71-pear lsphp71-pdo lsphp71-opcache ' \