install_mysql.sh: minor changes in getting current mysql version - (relevant for mysql 8.x).

This commit is contained in:
Christoph 2018-12-03 13:46:40 +01:00
parent 1da73300da
commit 1a577e58ff

View File

@ -252,7 +252,7 @@ if $UPDATE_MYSQL ; then
echo_ok echo_ok
echononl "Get current MySQL Version.." echononl "Get current MySQL Version.."
CURRENT_VERSION="$(echo $_MYSQLD_VERSION | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?")" CURRENT_VERSION="$(echo $_MYSQLD_VERSION | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?" | head -n 1)"
CURRENT_MAIN_VERSION="$(echo $MYSQL_VERSION | cut -d '.' -f1,2)" CURRENT_MAIN_VERSION="$(echo $MYSQL_VERSION | cut -d '.' -f1,2)"
if [[ -n "$CURRENT_VERSION" ]]; then if [[ -n "$CURRENT_VERSION" ]]; then
echo_ok echo_ok