From b2e774942097790f0f97cf07878ff04e01661798 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 16 Apr 2010 09:24:53 +0200 Subject: [PATCH] No longer use sudo --- id-deb-build/id-pbuild.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index cde1dc5..c2a0900 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -1,12 +1,7 @@ #!/bin/sh # This script builds Debian packages for one or more distributions # in i386/amd64 architectures. It uses pbuilder. pbuilder requires root -# privilege and is invoked with sudo. -# -# In order to avoid having to type-in the password for it, you might -# use something like this in sudoers -# user ALL=NOPASSWD,SETENV: /usr/sbin/pbuilder -# where user is your username. +# privilege and so this script should be invoked with sudo. usage() { @@ -101,12 +96,12 @@ for dist in ${DEBIAN_DIST} ${UBUNTU_DIST}; do rm -fr ${dist}-${arch} ( if test ! -f /var/cache/pbuilder/${dist}-${arch}-base.tgz; then - sudo DIST=$dist ARCH=$arch $PBUILDER create + DIST=$dist ARCH=$arch $PBUILDER create fi for f in `find /var/cache/pbuilder/${dist}-${arch}-base.tgz -ctime +7`; do - sudo DIST=$dist ARCH=$arch $PBUILDER update --override-config + DIST=$dist ARCH=$arch $PBUILDER update --override-config done - sudo DIST=$dist ARCH=$arch $PBUILDER --build $PKG + DIST=$dist ARCH=$arch $PBUILDER --build $PKG ) >${dist}-${arch}.log 2>&1 & i=`expr $i + 1` if test $i -eq $concurrency; then -- 1.7.10.4