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})"