From 440b0ab9a47d803a97b529337e95b11dcd6224fa Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 3 Sep 2020 15:35:01 +0500 Subject: [PATCH] upgrade mariadb on cent7 --- install/installCyberPanel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 5107c5890..1e4dd5739 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -245,10 +245,8 @@ class InstallCyberPanel: if self.distro == ubuntu: - command = "apt-get -y install mariadb-server" elif self.distro == centos: - mRepo = '/etc/yum.repos.d/MariaDB.repo' content = """# MariaDB 10.5 CentOS repository list - created 2020-09-03 09:44 UTC # http://downloads.mariadb.org/mariadb/repositories/ @@ -263,7 +261,7 @@ gpgcheck=1 writeToFile.write(content) writeToFile.close() - command = 'yum --enablerepo=MariaDB -y install MariaDB-server MariaDB-client' + command = 'yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client' elif self.distro == cent8: command = 'dnf -y install mariadb-server'