Skip to content

Commit

Permalink
bug fix: add lsphp83 to install
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Oct 5, 2024
1 parent 7f0d280 commit 8fe06d1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 11 additions & 2 deletions install/installCyberPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ def installAllPHPVersions(self):
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp82*'
os.system(command)

command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp83*'
os.system(command)

elif self.distro == centos:
command = 'yum -y groupinstall lsphp-all'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
Expand Down Expand Up @@ -293,15 +296,21 @@ def installAllPHPVersions(self):
command = 'yum install lsphp81* -y --skip-broken'
subprocess.call(command, shell=True)

command = 'yum install lsphp82* -y --skip-broken'
subprocess.call(command, shell=True)

command = 'yum install lsphp83* -y --skip-broken'
subprocess.call(command, shell=True)

if self.distro == cent8:
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* --exclude lsphp73-pecl-zip --exclude *imagick* -y --skip-broken'
subprocess.call(command, shell=True)

command = 'dnf install lsphp81* lsphp82* --exclude *imagick* -y --skip-broken'
command = 'dnf install lsphp81* lsphp82* lsphp83* --exclude *imagick* -y --skip-broken'
subprocess.call(command, shell=True)

if self.distro == openeuler:
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* -y'
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* lsphp81* lsphp82* lsphp83* -y'
subprocess.call(command, shell=True)

def installMySQL(self, mysql):
Expand Down
6 changes: 6 additions & 0 deletions plogical/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -2682,6 +2682,9 @@ def installPHP73():
command = 'yum install lsphp82* -y'
subprocess.call(command, shell=True)

command = 'yum install lsphp83* -y'
subprocess.call(command, shell=True)

except:
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install ' \
'lsphp7? lsphp7?-common lsphp7?-curl lsphp7?-dev lsphp7?-imap lsphp7?-intl lsphp7?-json ' \
Expand All @@ -2698,6 +2701,9 @@ def installPHP73():
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp82*'
os.system(command)

command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp83*'
os.system(command)

CentOSPath = '/etc/redhat-release'
openEulerPath = '/etc/openEuler-release'

Expand Down

0 comments on commit 8fe06d1

Please sign in to comment.