mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
update default mariadb version to 10.11
This commit is contained in:
@@ -321,21 +321,20 @@ gpgcheck=1
|
|||||||
command = 'dnf install mariadb-server -y'
|
command = 'dnf install mariadb-server -y'
|
||||||
elif self.distro == cent8 or self.distro == openeuler:
|
elif self.distro == cent8 or self.distro == openeuler:
|
||||||
|
|
||||||
RepoPath = '/etc/yum.repos.d/mariadb.repo'
|
command = 'curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.11'
|
||||||
RepoContent = f"""
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
||||||
[mariadb]
|
|
||||||
name = MariaDB
|
command = 'yum remove mariadb* -y'
|
||||||
baseurl = http://yum.mariadb.org/10.11/rhel8-amd64
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
||||||
module_hotfixes=1
|
|
||||||
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
command = 'sudo dnf -qy module disable mariadb'
|
||||||
gpgcheck=1
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
||||||
"""
|
|
||||||
WriteToFile = open(RepoPath, 'w')
|
command = 'sudo dnf module reset mariadb -y'
|
||||||
WriteToFile.write(RepoContent)
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
||||||
WriteToFile.close()
|
|
||||||
|
|
||||||
|
|
||||||
command = 'dnf -y install mariadb-server'
|
command = 'dnf install MariaDB-server MariaDB-client MariaDB-backup'
|
||||||
|
|
||||||
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user