From: Kern Sibbald Date: Sat, 12 Sep 2009 06:13:44 +0000 (+0200) Subject: Try to distinguish CentOS/RHEL X-Git-Tag: Release-7.0.0~2633^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=70de5b5d2cc5c486d210d62f5aa06e286f096e8b;p=bacula%2Fbacula Try to distinguish CentOS/RHEL --- diff --git a/regress/scripts/get-os b/regress/scripts/get-os index 8143a6cd8d..2a1cfed656 100755 --- a/regress/scripts/get-os +++ b/regress/scripts/get-os @@ -385,7 +385,7 @@ then DISTNAME=redhat elif test -f /etc/redhat-release then - if test `grep CentOs /etc/redhat-release` + if test `grep CentOS /etc/redhat-release` then DISTNAME=redhat else @@ -468,8 +468,7 @@ redhat) fi if test `cat $f | grep release |\ cut -f 3 -d ' '`x = "Enterprise"x ; then - DISTVER="Enterprise "`cat $f | grep release |\ - cut -f 6 -d ' '` + DISTVER="RHEL "`cat $f | grep release | cut -f 6 -d ' '` else DISTVER=`cat /etc/redhat-release | grep release |\ cut -f 5 -d ' '`