Bump MariaDB to 11.4
This commit is contained in:
@@ -84,7 +84,7 @@ version = 8.2
|
|||||||
[mariadb]
|
[mariadb]
|
||||||
|
|
||||||
### Default MariaDB release
|
### Default MariaDB release
|
||||||
release = 10.11
|
release = 11.4
|
||||||
|
|
||||||
[update]
|
[update]
|
||||||
|
|
||||||
|
|||||||
11
install
11
install
@@ -231,6 +231,16 @@ wo_install_dep() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wo_download_gpg_keys() {
|
||||||
|
# redis gpg key
|
||||||
|
curl -fsSL https://packages.redis.io/gpg | gpg --dearmor | tee /usr/share/keyrings/redis-archive-keyring.gpg >/dev/null 2>&1
|
||||||
|
|
||||||
|
# mariadb
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
wo_timesync() {
|
wo_timesync() {
|
||||||
# set default ntp pools
|
# set default ntp pools
|
||||||
if [ "$wo_distro_codename" != "bookworm" ] && [ "$wo_distro_codename" != "noble" ]; then
|
if [ "$wo_distro_codename" != "bookworm" ] && [ "$wo_distro_codename" != "noble" ]; then
|
||||||
@@ -851,6 +861,7 @@ else
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
_run wo_install_dep "Installing wo dependencies"
|
_run wo_install_dep "Installing wo dependencies"
|
||||||
|
_run wo_download_gpg_keys
|
||||||
_run wo_timesync
|
_run wo_timesync
|
||||||
# skip steps if travis
|
# skip steps if travis
|
||||||
if [ -z "$wo_travis" ]; then
|
if [ -z "$wo_travis" ]; then
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ def pre_pref(self, apt_packages):
|
|||||||
|
|
||||||
if ("mariadb-server" in apt_packages or "mariadb-client" in apt_packages):
|
if ("mariadb-server" in apt_packages or "mariadb-client" in apt_packages):
|
||||||
# add mariadb repository excepted on raspbian and ubuntu 19.04
|
# add mariadb repository excepted on raspbian and ubuntu 19.04
|
||||||
if not (WOVar.wo_distro == 'raspbian') and not (WOVar.wo_platform_codename == 'noble'):
|
if not (WOVar.wo_distro == 'raspbian'):
|
||||||
Log.info(self, "Adding repository for MySQL, please wait...")
|
Log.info(self, "Adding repository for MySQL, please wait...")
|
||||||
mysql_pref = (
|
mysql_pref = (
|
||||||
"Package: *\nPin: origin mariadb.mirrors.ovh.net"
|
"Package: *\nPin: origin mariadb.mirrors.ovh.net"
|
||||||
@@ -40,12 +40,9 @@ def pre_pref(self, apt_packages):
|
|||||||
if self.app.config.has_section('mariadb'):
|
if self.app.config.has_section('mariadb'):
|
||||||
mariadb_ver = self.app.config.get(
|
mariadb_ver = self.app.config.get(
|
||||||
'mariadb', 'release')
|
'mariadb', 'release')
|
||||||
wo_mysql_repo_conf = ("deb [arch=amd64,arm64,ppc64el] "
|
wo_mysql_repo_conf = ("deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] "
|
||||||
"http://mariadb.mirrors.ovh.net/MariaDB/repo/"
|
"http://mariadb.mirrors.ovh.net/MariaDB/repo/"
|
||||||
"{version}/{distro} {codename} main"
|
f"{mariadb_ver}/{WOVar.wo_distro} {WOVar.wo_platform_codename} main")
|
||||||
.format(version=mariadb_ver,
|
|
||||||
distro=WOVar.wo_distro,
|
|
||||||
codename=WOVar.wo_platform_codename))
|
|
||||||
else:
|
else:
|
||||||
wo_mysql_repo_conf = WOVar.wo_mysql_repo
|
wo_mysql_repo_conf = WOVar.wo_mysql_repo
|
||||||
# APT repositories
|
# APT repositories
|
||||||
|
|||||||
Reference in New Issue
Block a user