From: Adam Dickmeiss Date: Fri, 16 Apr 2010 07:24:53 +0000 (+0200) Subject: No longer use sudo X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=b2e774942097790f0f97cf07878ff04e01661798;p=git-tools-moved-to-github.git No longer use sudo --- 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