install_mysql.sh: minor changes in getting current mysql version - (relevant for mysql 8.x).
This commit is contained in:
parent
1da73300da
commit
1a577e58ff
@ -252,7 +252,7 @@ if $UPDATE_MYSQL ; then
|
||||
echo_ok
|
||||
|
||||
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)"
|
||||
if [[ -n "$CURRENT_VERSION" ]]; then
|
||||
echo_ok
|
||||
|
Loading…
Reference in New Issue
Block a user