From fcd07468e7d121b19f68bcde5a64c1129c4c3958 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Wed, 7 Feb 2024 21:14:22 +0500 Subject: [PATCH] bug fix: mariadb install --- install/installCyberPanel.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 01f501dac..ae70929f6 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -318,9 +318,13 @@ Signed-By: /etc/apt/keyrings/mariadb-keyring.pgp """ if get_Ubuntu_release() > 21.00: - WriteToFile = open(RepoPath, 'w') - WriteToFile.write(RepoContent) - WriteToFile.close() + command = 'curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.11' + install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True) + # WriteToFile = open(RepoPath, 'w') + # WriteToFile.write(RepoContent) + # WriteToFile.close() + + command = 'DEBIAN_FRONTEND=noninteractive apt-get update -y' install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)