diff options
author | kris <kris@FreeBSD.org> | 2005-02-12 03:39:16 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2005-02-12 03:39:16 +0000 |
commit | fc848829cb3b81098616380b1bf01ce51d0f1ef6 (patch) | |
tree | cb0a40fb27ede7f088b5bbae29be407fbf8d682a /Tools | |
parent | a41a3ce9e00d6c398bb8cae2b4f2a1784d815bdb (diff) | |
download | FreeBSD-ports-fc848829cb3b81098616380b1bf01ce51d0f1ef6.zip FreeBSD-ports-fc848829cb3b81098616380b1bf01ce51d0f1ef6.tar.gz |
Only try to chown the portbuild directory if we are a disconnected client
(i.e. it is not mounted by nfs)
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dosetupnode | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/dosetupnode b/Tools/portbuild/scripts/dosetupnode index b45a623..c3e3ffc 100755 --- a/Tools/portbuild/scripts/dosetupnode +++ b/Tools/portbuild/scripts/dosetupnode @@ -26,7 +26,7 @@ md5=$(/sbin/md5 ${pb}/${arch}/${branch}/tarballs/bindist.tar | awk '{print $4}') scp -p ${pb}/scripts/setupnode ${client_user}@${node}:/tmp ssh -n ${client_user}@${node} ${sudo_cmd} sh /tmp/setupnode $(hostname) ${pb} ${arch} ${branch} ${scratchdir} ${md5} ${disconnected} -if [ ! -z "${sudo_cmd}" ]; then +if [ ! -z "${sudo_cmd}" -a ${disconnected} = "1" ]; then ssh -n ${client_user}@${node} ${sudo_cmd} "chown -R ${client_user} /var/portbuild/" fi |