Updated get_distro.sh for RHEL 7

This commit is contained in:
Cloud User 2015-03-17 19:38:07 -04:00
parent 032f7f0f5a
commit d9aef7b4ac
2 changed files with 11 additions and 0 deletions

View File

@ -14837,3 +14837,5 @@
2015-03-16 Fred Gleason <fredg@paravelsystems.com> 2015-03-16 Fred Gleason <fredg@paravelsystems.com>
* Added 'DESCRIPTION', 'OUTCUE', 'FILENAME' and '*_POINT' fields * Added 'DESCRIPTION', 'OUTCUE', 'FILENAME' and '*_POINT' fields
to the 'Cart CSV Report' in 'rdlibrary/list_reports.cpp'. to the 'Cart CSV Report' in 'rdlibrary/list_reports.cpp'.
2015-03-17 Fred Gleason <fredg@paravelsystems.com>
* Updated 'get_distro.sh' to detect RHEL 7 correctly.

View File

@ -58,6 +58,9 @@ case "$1" in
if test $VER = "release" ; then if test $VER = "release" ; then
VER=`awk '/release/ {print $4}' /etc/redhat-release` VER=`awk '/release/ {print $4}' /etc/redhat-release`
fi fi
if test $VER = "Enterprise" ; then
VER=`awk '/release/ {print $7}' /etc/redhat-release`
fi
echo $VER echo $VER
exit 0 exit 0
fi fi
@ -80,6 +83,9 @@ case "$1" in
if test $VER = "release" ; then if test $VER = "release" ; then
VER=`awk '/release/ {print $4}' /etc/redhat-release` VER=`awk '/release/ {print $4}' /etc/redhat-release`
fi fi
if test $VER = "Enterprise" ; then
VER=`awk '/release/ {print $7}' /etc/redhat-release`
fi
echo $VER | awk -F '.' '{print $1}' echo $VER | awk -F '.' '{print $1}'
exit 0 exit 0
fi fi
@ -98,6 +104,9 @@ case "$1" in
if test $VER = "release" ; then if test $VER = "release" ; then
VER=`awk '/release/ {print $4}' /etc/redhat-release` VER=`awk '/release/ {print $4}' /etc/redhat-release`
fi fi
if test $VER = "Enterprise" ; then
VER=`awk '/release/ {print $7}' /etc/redhat-release`
fi
echo $VER | awk -F '.' '{print $2}' echo $VER | awk -F '.' '{print $2}'
exit 0 exit 0
fi fi