mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 17:26:17 +01:00
alma8 maria10.6: https://github.com/usmannasir/cyberpanel/issues/967
This commit is contained in:
@@ -281,6 +281,20 @@ class InstallCyberPanel:
|
|||||||
elif self.distro == centos:
|
elif self.distro == centos:
|
||||||
command = 'yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client'
|
command = 'yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client'
|
||||||
elif self.distro == cent8 or self.distro == openeuler:
|
elif self.distro == cent8 or self.distro == openeuler:
|
||||||
|
### check if cent8 which means Alma8 then add Mariadb 10.6 repo
|
||||||
|
if self.distro == cent8:
|
||||||
|
content = """
|
||||||
|
[mariadb]
|
||||||
|
name = MariaDB
|
||||||
|
baseurl = http://yum.mariadb.org/10.6/rhel8-amd64
|
||||||
|
module_hotfixes=1
|
||||||
|
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
||||||
|
gpgcheck=1
|
||||||
|
"""
|
||||||
|
writeToFile = open('/etc/yum.repos.d/mariadb.repo', 'w')
|
||||||
|
writeToFile.write(content)
|
||||||
|
writeToFile.close()
|
||||||
|
|
||||||
command = 'dnf -y install mariadb-server'
|
command = 'dnf -y install mariadb-server'
|
||||||
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user