From: Alfredo Deza Date: Wed, 3 Jun 2015 15:43:14 +0000 (-0400) Subject: only run on debian hosts X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7651ed517bb3619be457cad57708b229aebade0;p=ceph-build.git only run on debian hosts Signed-off-by: Alfredo Deza --- diff --git a/ceph-build/build/setup_debian b/ceph-build/build/setup_debian index 02975aa5..99c88ab3 100755 --- a/ceph-build/build/setup_debian +++ b/ceph-build/build/setup_debian @@ -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 \