Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
update MariaDB check version URL

Signed-off-by: Teddysun <[email protected]>
  • Loading branch information
teddysun committed Nov 15, 2021
1 parent 89a6e71 commit de1e794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/upgrade_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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})"
Expand Down

0 comments on commit de1e794

Please sign in to comment.