upgrade mariadb on ubuntu18

This commit is contained in:
Usman Nasir
2020-09-03 15:40:01 +05:00
parent 440b0ab9a4
commit 3331b94a9d

View File

@@ -244,6 +244,15 @@ class InstallCyberPanel:
if self.distro == ubuntu:
if get_Ubuntu_release() == 18.10:
command = 'apt-get install software-properties-common -y'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
command = "apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'"
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
command = "add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirror.yongbok.net/mariadb/repo/10.5/ubuntu bionic main'"
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
command = "apt-get -y install mariadb-server"
elif self.distro == centos: