]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix CentOS/RHEL detection
authorKern Sibbald <kern@sibbald.com>
Wed, 9 Dec 2009 13:23:42 +0000 (14:23 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 9 Dec 2009 13:23:42 +0000 (14:23 +0100)
regress/scripts/get-os

index a71100423395b4c9ca570f0524d6901b6e546f41..aaff2cd705e4ac0a900338f21b9bcd04033b6bec 100755 (executable)
@@ -387,9 +387,9 @@ elif test -f /etc/redhat-release
 then
        if test `grep -q CentOS /etc/redhat-release`
        then
-           DISTNAME=redhat
-       else
            DISTNAME=centos
+       else
+           DISTNAME=redhat
        fi
 elif test -f /etc/gentoo-release
 then