diff options
Diffstat (limited to 'bin/heat-db-setup')
-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" |