diff --git a/cyberpanel.sh b/cyberpanel.sh index 7e3d6c8ed..17062faef 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -343,6 +343,7 @@ if [[ $SERVER_OS == "CentOS" ]] ; then yum -y install platform-python-devel dnf --enablerepo=PowerTools install gpgme-devel -y yum -y install python3-pip + yum install wget -y fi if [[ $DEV == "ON" ]] ; then diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 889e1374b..e12056cc9 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -11,6 +11,7 @@ import install #distros centos=0 ubuntu=1 +cent8=2 class InstallCyberPanel: @@ -35,10 +36,25 @@ class InstallCyberPanel: if self.ent == 0: if self.distro == ubuntu: command = "apt-get -y install openlitespeed" - else: + install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) + elif self.distro == centos: 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' + 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) + - install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) else: try: try: