Fix heat-db-setup error on rhel7.1

In bash, '-gt' can not work with flaot number.

Change-Id: I264e9e7ebe9de6aca116783a655a3efd9500c938
Closes-Bug: #1468217
This commit is contained in:
Ethan Lynn 2015-06-24 15:38:43 +08:00
parent beafdb8cab
commit 7c5864ae37
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ case "$1" in
DB_SERVER="mysql-server"
# Install mariadb-server in rhel7 and fedora
if [[ -r /etc/redhat-release ]];then
ver=`grep -E -o '[0-9]+([.]?[0-9])*' /etc/redhat-release`
ver=`grep -E -o '[0-9]+' /etc/redhat-release| sed 1q`
if [[ $ver -ge 7 ]];then
SERVICE_MYSQLD="mariadb"
DB_SERVER="mariadb-server"