mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
This commit is contained in:
@@ -200,6 +200,9 @@ class InstallCyberPanel:
|
|||||||
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp80*'
|
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp80*'
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
||||||
|
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp81*'
|
||||||
|
os.system(command)
|
||||||
|
|
||||||
elif self.distro == centos:
|
elif self.distro == centos:
|
||||||
command = 'yum -y groupinstall lsphp-all'
|
command = 'yum -y groupinstall lsphp-all'
|
||||||
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)
|
||||||
@@ -241,6 +244,9 @@ class InstallCyberPanel:
|
|||||||
command = 'yum install lsphp80* -y'
|
command = 'yum install lsphp80* -y'
|
||||||
subprocess.call(command, shell=True)
|
subprocess.call(command, shell=True)
|
||||||
|
|
||||||
|
command = 'yum install lsphp81* -y'
|
||||||
|
subprocess.call(command, shell=True)
|
||||||
|
|
||||||
if self.distro == cent8:
|
if self.distro == cent8:
|
||||||
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* --exclude lsphp73-pecl-zip -y'
|
command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* lsphp80* --exclude lsphp73-pecl-zip -y'
|
||||||
subprocess.call(command, shell=True)
|
subprocess.call(command, shell=True)
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ class PHPManager:
|
|||||||
def findPHPVersions():
|
def findPHPVersions():
|
||||||
distro = ProcessUtilities.decideDistro()
|
distro = ProcessUtilities.decideDistro()
|
||||||
if distro == ProcessUtilities.centos:
|
if distro == ProcessUtilities.centos:
|
||||||
return ['PHP 5.3', 'PHP 5.4', 'PHP 5.5', 'PHP 5.6', 'PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0']
|
return ['PHP 5.3', 'PHP 5.4', 'PHP 5.5', 'PHP 5.6', 'PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0', 'PHP 8.1']
|
||||||
elif distro == ProcessUtilities.cent8:
|
elif distro == ProcessUtilities.cent8:
|
||||||
return ['PHP 7.1','PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0']
|
return ['PHP 7.1','PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0', 'PHP 8.1']
|
||||||
elif distro == ProcessUtilities.ubuntu20:
|
elif distro == ProcessUtilities.ubuntu20:
|
||||||
return ['PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0']
|
return ['PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0', 'PHP 8.1']
|
||||||
else:
|
else:
|
||||||
return ['PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0']
|
return ['PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3', 'PHP 7.4', 'PHP 8.0', 'PHP 8.1']
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getPHPString(phpVersion):
|
def getPHPString(phpVersion):
|
||||||
|
|||||||
@@ -2156,6 +2156,10 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
|||||||
command = 'yum install lsphp80* -y'
|
command = 'yum install lsphp80* -y'
|
||||||
subprocess.call(command, shell=True)
|
subprocess.call(command, shell=True)
|
||||||
|
|
||||||
|
if Upgrade.installedOutput.find('lsphp80') == -1:
|
||||||
|
command = 'yum install lsphp81* -y'
|
||||||
|
subprocess.call(command, shell=True)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install ' \
|
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install ' \
|
||||||
'lsphp7? lsphp7?-common lsphp7?-curl lsphp7?-dev lsphp7?-imap lsphp7?-intl lsphp7?-json ' \
|
'lsphp7? lsphp7?-common lsphp7?-curl lsphp7?-dev lsphp7?-imap lsphp7?-intl lsphp7?-json ' \
|
||||||
@@ -2166,6 +2170,9 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
|||||||
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp80*'
|
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp80*'
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
||||||
|
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp81*'
|
||||||
|
os.system(command)
|
||||||
|
|
||||||
CentOSPath = '/etc/redhat-release'
|
CentOSPath = '/etc/redhat-release'
|
||||||
|
|
||||||
if not os.path.exists(CentOSPath):
|
if not os.path.exists(CentOSPath):
|
||||||
|
|||||||
Reference in New Issue
Block a user