mirror of
https://github.com/teddysun/lamp.git
synced 2026-04-05 20:28:35 +00:00
Update comments
update MariaDB check version URL Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
@@ -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})"
|
||||
|
||||
Reference in New Issue
Block a user