do not depend on CyberPanel own repo fro cent7

This commit is contained in:
Usman Nasir
2020-09-08 20:13:21 +05:00
parent 4593a68c5a
commit 29c0a38e4c
3 changed files with 66 additions and 35 deletions

View File

@@ -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'