]> git.sur5r.net Git - bacula/bacula/commitdiff
Try to distinguish CentOS/RHEL
authorKern Sibbald <kern@sibbald.com>
Sat, 12 Sep 2009 06:13:44 +0000 (08:13 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 12 Sep 2009 06:13:44 +0000 (08:13 +0200)
regress/scripts/get-os

index 8143a6cd8dbf3647ccb0c16ad98ca6c2ec3b69a0..2a1cfed6560cd9520204ed6abf2653e777a59a08 100755 (executable)
@@ -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 ' '`