mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 01:06:09 +01:00
cent8 repos
This commit is contained in:
@@ -359,9 +359,12 @@ class preFlightsChecks:
|
||||
preFlightsChecks.stdOut("[ERROR] Exception during CyberPanel install")
|
||||
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'
|
||||
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):
|
||||
command = 'yum -y install epel-release'
|
||||
@@ -2219,10 +2222,10 @@ def main():
|
||||
checks.enableEPELRepo()
|
||||
checks.install_pip()
|
||||
checks.install_python_dev()
|
||||
checks.install_gcc()
|
||||
#checks.install_gcc()
|
||||
if distro == centos:
|
||||
checks.install_python_setup_tools()
|
||||
checks.install_python_mysql_library()
|
||||
#checks.install_python_mysql_library()
|
||||
|
||||
import installCyberPanel
|
||||
|
||||
|
||||
@@ -41,19 +41,9 @@ class InstallCyberPanel:
|
||||
command = 'yum install -y openlitespeed'
|
||||
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||
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)
|
||||
|
||||
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:
|
||||
try:
|
||||
@@ -182,7 +172,7 @@ class InstallCyberPanel:
|
||||
InstallCyberPanel.stdOut("LiteSpeed PHPs successfully installed!", 1)
|
||||
|
||||
## 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 ' \
|
||||
'lsphp71-recode lsphp71-pspell lsphp71-process lsphp71-pgsql lsphp71-pear lsphp71-pdo lsphp71-opcache ' \
|
||||
|
||||
Reference in New Issue
Block a user