]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
arg
authorSage Weil <sage@newdream.net>
Fri, 11 Feb 2011 19:05:51 +0000 (11:05 -0800)
committerSage Weil <sage@newdream.net>
Fri, 11 Feb 2011 19:08:56 +0000 (11:08 -0800)
build_debs.sh
build_dsc.sh

index c5d4106837c59934cd5ada5d6abb7672ec2daa9c..cc921728283a848118fe5e57552cffc49a3e785a 100755 (executable)
@@ -15,6 +15,8 @@ dists=$4
 
 echo version $cephver
 
+whoami=`whoami`
+[ "$whoami" != "root" ] && echo "must run as root not $whoami" && exit 1
 
 [ -z "$dists" ] && dists=`cat $releasedir/$cephver/debian_dists`
 dvers=`cat $releasedir/$cephver/debian_version`
index a7e1c141cb0c49eeb5ae02b0575de50de7466b09..b84740d39d3150fdf82a902e6bf3b48c292c229e 100755 (executable)
@@ -15,9 +15,6 @@ dists="$*"
 [ -z "$debsubver" ] && debsubver=1
 [ -z "$dists" ] && dists="sid squeeze lenny maverick lucid"
 
-whoami=`whoami`
-[ "$whoami" != "root" ] && echo "must run as root not $whoami" && exit 1
-
 bindir=`dirname $0`
 echo "$bindir" | grep -v -q '^/' && bindir=`pwd`"/$bindir"