From 14ad92198b534762ee03fca36e70b4cce4277cf0 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 15 May 2025 09:34:18 +0200 Subject: [PATCH] fix mariadb crawling --- misc/tools.func | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index a30780e9..f2b49138 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -168,10 +168,10 @@ install_mariadb() { # grab dynamic latest LTS version if [[ "$MARIADB_VERSION" == "latest" ]]; then $STD msg_info "Resolving latest GA MariaDB version" - MARIADB_VERSION=$(curl -fsSL "https://mariadb.com/kb/en/mariadb-community-server-release-notes/" | - grep -Eo 'MariaDB ([0-9]+\.[0-9]+)\.[0-9]+ Release Notes' | - grep -v 'Alpha\|Beta\|RC' | - grep -Eo '[0-9]+\.[0-9]+' | + MARIADB_VERSION=$(curl -fsSL http://mirror.mariadb.org/repo/ | + grep -Eo '[0-9]+\.[0-9]+\.[0-9]+/' | + grep -vE 'rc/|rolling/' | + sed 's|/||' | sort -Vr | head -n1) if [[ -z "$MARIADB_VERSION" ]]; then