From de1e7944eb9f96c3f22e6ad4f96ca6f880e8fd5d Mon Sep 17 00:00:00 2001 From: Teddysun Date: Mon, 15 Nov 2021 21:13:46 +0900 Subject: [PATCH] Update comments update MariaDB check version URL Signed-off-by: Teddysun --- include/upgrade_db.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/upgrade_db.sh b/include/upgrade_db.sh index 9d9d0983..602b58e3 100644 --- a/include/upgrade_db.sh +++ b/include/upgrade_db.sh @@ -53,13 +53,13 @@ upgrade_db(){ elif [ "${mariadb_ver}" == "10.1" ]; then latest_mariadb="10.1.48" elif [ "${mariadb_ver}" == "10.2" ]; then - latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep textwidget | grep -oE "10.2.[0-9.]+" | head -1)" + latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep "Latest MariaDB releases" | grep -oE "10.2.[0-9.]+" | head -1)" elif [ "${mariadb_ver}" == "10.3" ]; then - latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep textwidget | grep -oE "10.3.[0-9.]+" | head -1)" + latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep "Latest MariaDB releases" | grep -oE "10.3.[0-9.]+" | head -1)" elif [ "${mariadb_ver}" == "10.4" ]; then - latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep textwidget | grep -oE "10.4.[0-9.]+" | head -1)" + latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep "Latest MariaDB releases" | grep -oE "10.4.[0-9.]+" | head -1)" elif [ "${mariadb_ver}" == "10.5" ]; then - latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep textwidget | grep -oE "10.5.[0-9.]+" | head -1)" + latest_mariadb="$(curl -4s https://mariadb.org/download/ | grep "Latest MariaDB releases" | grep -oE "10.5.[0-9.]+" | head -1)" fi _info "Latest version of MariaDB : $(_red ${latest_mariadb})"