]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweaks
authorKern Sibbald <kern@sibbald.com>
Sun, 16 Mar 2008 06:48:37 +0000 (06:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 16 Mar 2008 06:48:37 +0000 (06:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6614 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/get-os
regress/tests/maxvol2-test

index 8c818dce081fff0c040061092987d0a54a4ad4be..412c7e1976916989258bd918ef8f74a847e3f33f 100755 (executable)
@@ -339,72 +339,77 @@ fi
 # ----------------------------------------------------------
 if test "x$DISTNAME" != "x"
 then
-        echo "distname set to $DISTNAME"
+       echo "distname set to $DISTNAME"
 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
 then
-        DISTNAME=alpha
+       DISTNAME=alpha
 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
 then
-        DISTNAME=aix
+       DISTNAME=aix
 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
 then
-        DISTNAME=hpux
+       DISTNAME=hpux
 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
 then
-        DISTNAME=solaris
+       DISTNAME=solaris
 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
 then
-        DISTNAME=freebsd
+       DISTNAME=freebsd
 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
 then
-        DISTNAME=netbsd
+       DISTNAME=netbsd
 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
 then
-        DISTNAME=openbsd
+       DISTNAME=openbsd
 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
 then
-        DISTNAME=irix
+       DISTNAME=irix
 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
 then
-        DISTNAME=bsdi
+       DISTNAME=bsdi
 elif test -f /etc/SuSE-release
 then
-        DISTNAME=suse
+       DISTNAME=suse
 elif test -d /etc/SuSEconfig
 then
-        DISTNAME=suse5
+       DISTNAME=suse5
 elif test -f /etc/mandrake-release
 then
-        DISTNAME=mandrake
+       DISTNAME=mandrake
 elif test -f /etc/fedora-release
 then
-        DISTNAME=fedora
+       DISTNAME=fedora
 elif test -f /etc/whitebox-release
 then
        DISTNAME=redhat
 elif test -f /etc/redhat-release
 then
-        DISTNAME=redhat
+       if test `grep CentOs /etc/redhat-release`
+       then
+          DISTNAME=redhat
+       else
+          DISTNAME=centos
+       fi
 elif test -f /etc/gentoo-release
 then
-        DISTNAME=gentoo
+       DISTNAME=gentoo
 elif test -f /etc/debian_version
 then
-        DISTNAME=debian
+       DISTNAME=debian
 elif test -f /etc/slackware-version
 then
-        DISTNAME=slackware
+       DISTNAME=slackware
 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
 then
     DISTNAME=darwin
 elif test -f /etc/engarde-version
 then
-        DISTNAME=engarde
+       DISTNAME=engarde
 elif test "$CYGWIN" = yes
 then
-        DISTNAME=cygwin
+       DISTNAME=cygwin
 else
-        DISTNAME=unknown
+       DISTNAME=unknown
 fi
 
 case "$DISTNAME" in
@@ -456,6 +461,10 @@ redhat)
                     cut -f 5 -d ' '`
        fi
   ;;
+centos)
+  DISTVER=`cat /etc/redhat-release | grep release |\
+          cut -f 3 -d ' '`
+  ;;
 fedora)
        if test `cat /etc/fedora-release | grep release | cut -f 2 -d ' '`x = "Core"x ; then
            DISTVER=`cat /etc/fedora-release | grep release |cut -f 4 -d ' '`
index f99b1603bd7f8557252c4c12a4f03ee15d424e04..607d1101683bcb5d8d51bdfc7f026c59569b7b34 100755 (executable)
@@ -30,7 +30,7 @@ update Volume=TestVolume002 maxvoljobs=1
 update Volume=TestVolume003 volretention=10s
 update Volume=TestVolume003 maxvoljobs=1
 list volumes
-setdebug level=50 storage=File1
+setdebug level=150 storage=File1
 run job=$JobName storage=File1 level=full yes
 run job=$JobName storage=File1 level=full yes
 run job=$JobName storage=File1 level=full yes