aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-09-27 06:37:22 +0800
committerkris <kris@FreeBSD.org>2004-09-27 06:37:22 +0800
commit0a59478fb7ba3678f33847e407258109f0d8e394 (patch)
treeac4795e495558124c77b2b2057d32a16edb4884a /Tools/portbuild
parent21a1bd766c5582e902c7832c1d113ed198bb620a (diff)
downloadfreebsd-ports-graphics-0a59478fb7ba3678f33847e407258109f0d8e394.tar.gz
freebsd-ports-graphics-0a59478fb7ba3678f33847e407258109f0d8e394.tar.zst
freebsd-ports-graphics-0a59478fb7ba3678f33847e407258109f0d8e394.zip
Support ${client_user} and ${sudo_cmd} for running commands as root on
machines where we first connect to a non-root user and then increase privileges. Approved by: portmgr (self)
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/allgohans6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/allgohans b/Tools/portbuild/scripts/allgohans
index 391a8a60bc1..2caa379809a 100755
--- a/Tools/portbuild/scripts/allgohans
+++ b/Tools/portbuild/scripts/allgohans
@@ -14,10 +14,14 @@ doarch() {
machines=$(awk '{print $1}' ${pb}/${arch}/mlist)
for i in ${machines}; do
+ . ${pb}/${arch}/portbuild.conf
+ if [ -f "${pb}/${arch}/portbuild.${i}" ]; then
+ . ${pb}/${arch}/portbuild.${i}
+ fi
if [ ${quiet} -eq 0 ]; then
echo "[$i]"
fi
- su ports-${arch} -c "ssh root@$i $@"
+ su ports-${arch} -c "ssh ${client_user}@$i ${sudo_cmd} $@"
done
}