mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
do not depend on CyberPanel own repo fro cent7
This commit is contained in:
@@ -256,20 +256,6 @@ class InstallCyberPanel:
|
||||
|
||||
command = "apt-get -y install mariadb-server"
|
||||
elif self.distro == centos:
|
||||
|
||||
content = """# MariaDB 10.5 CentOS repository list - created 2020-09-03 09:44 UTC
|
||||
# http://downloads.mariadb.org/mariadb/repositories/
|
||||
[mariadb]
|
||||
name = MariaDB
|
||||
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
|
||||
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
||||
gpgcheck=1
|
||||
"""
|
||||
|
||||
writeToFile = open(mRepo, 'w')
|
||||
writeToFile.write(content)
|
||||
writeToFile.close()
|
||||
|
||||
command = 'yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client'
|
||||
elif self.distro == cent8:
|
||||
command = 'dnf -y install mariadb-server'
|
||||
|
||||
Reference in New Issue
Block a user