diff options
author | Ethan Lynn <xjunlin@cn.ibm.com> | 2015-06-24 15:38:43 +0800 |
---|---|---|
committer | Ethan Lynn <xjunlin@cn.ibm.com> | 2015-06-24 15:39:33 +0800 |
commit | 7c5864ae37417b083de37b0f0b93ebc58c8580d6 (patch) | |
tree | 4f8d0307c4091ccaa0b185da772e5e5c752b6922 /bin | |
parent | beafdb8cabdd4912357931973f6f3ab66efc872c (diff) | |
download | heat-7c5864ae37417b083de37b0f0b93ebc58c8580d6.tar.gz |
Fix heat-db-setup error on rhel7.1
In bash, '-gt' can not work with flaot number.
Change-Id: I264e9e7ebe9de6aca116783a655a3efd9500c938
Closes-Bug: #1468217
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/heat-db-setup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/heat-db-setup b/bin/heat-db-setup index c568cc216..76d859e31 100755 --- a/bin/heat-db-setup +++ b/bin/heat-db-setup @@ -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" |