]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
only run on debian hosts
authorAlfredo Deza <adeza@redhat.com>
Wed, 3 Jun 2015 15:43:14 +0000 (11:43 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 3 Jun 2015 15:43:14 +0000 (11:43 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-build/build/setup_debian

index 02975aa59b21fe887a99c97f048bc26f59c2cb64..99c88ab3a5244969b88da5b8f3ec2813f44d63c7 100755 (executable)
@@ -7,6 +7,11 @@
 
 set -e
 
+# Only run when we are a Debian or Debian-based distro
+if test -f /etc/redhat-release ; then
+    exit 0
+fi
+
 basedir="/srv/debian-base"
 
 # This used to live in a *file* on /src/ceph-build. Now it lives here because
@@ -40,8 +45,6 @@ do
 
     if [ -e $basedir/$dist.tgz ]; then
         echo updating $dist base.tgz
-#        savelog -l -n  $basedir/$dist.tgz
-#        cp $basedir/$dist.tgz.0 $basedir/$dist.tgz
         pbuilder update \
            --basetgz $basedir/$dist.tgz \
            --distribution $dist \