]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
check if we are root
authorSage Weil <sage@newdream.net>
Fri, 11 Feb 2011 18:22:54 +0000 (10:22 -0800)
committerSage Weil <sage@newdream.net>
Fri, 11 Feb 2011 18:22:54 +0000 (10:22 -0800)
build_dsc.sh

index b84740d39d3150fdf82a902e6bf3b48c292c229e..a7e1c141cb0c49eeb5ae02b0575de50de7466b09 100755 (executable)
@@ -15,6 +15,9 @@ 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"