Update comments

update MariaDB check version URL

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun
2021-11-15 21:13:46 +09:00
parent 89a6e71ec2
commit de1e7944eb

View File

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