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:
parent
beafdb8cab
commit
7c5864ae37
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user