diff options
author | kris <kris@FreeBSD.org> | 2003-01-24 12:54:45 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-01-24 12:54:45 +0800 |
commit | 284c3ebac28b378f31830e8245b8161799b2f1f0 (patch) | |
tree | 990e29f56429d96de513dee5a94b1fdc0166153d /Tools/portbuild | |
parent | 7b1d44e95cf81e13dc3c30b236d5d8c9dba267cd (diff) | |
download | freebsd-ports-gnome-284c3ebac28b378f31830e8245b8161799b2f1f0.tar.gz freebsd-ports-gnome-284c3ebac28b378f31830e8245b8161799b2f1f0.tar.zst freebsd-ports-gnome-284c3ebac28b378f31830e8245b8161799b2f1f0.zip |
- Use ${arch}
- Support builds as non-privileged user
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/reportload | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/reportload b/Tools/portbuild/scripts/reportload index 09cae20dd1e7..0044db5cc75c 100755 --- a/Tools/portbuild/scripts/reportload +++ b/Tools/portbuild/scripts/reportload @@ -6,8 +6,9 @@ # configurable variables pb=/var/portbuild +arch=$1 -. ${pb}/portbuild.conf +. ${pb}/${arch}/portbuild.conf me=$(hostname -s) tmpfile=${scratchdir}/${me} @@ -16,7 +17,7 @@ while true; do num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l)) echo -n "$num " > ${tmpfile} uptime >> ${tmpfile} - scp -q ${tmpfile} $master:${pb}/loads/ + scp -q ${tmpfile} ${user}@${master}:${pb}/${arch}/loads/ rm -f ${tmpfile} sleep 5 done |