diff options
author | kris <kris@FreeBSD.org> | 2005-02-12 11:39:16 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2005-02-12 11:39:16 +0800 |
commit | fc848829cb3b81098616380b1bf01ce51d0f1ef6 (patch) | |
tree | cb0a40fb27ede7f088b5bbae29be407fbf8d682a /Tools/portbuild | |
parent | a41a3ce9e00d6c398bb8cae2b4f2a1784d815bdb (diff) | |
download | freebsd-ports-gnome-fc848829cb3b81098616380b1bf01ce51d0f1ef6.tar.gz freebsd-ports-gnome-fc848829cb3b81098616380b1bf01ce51d0f1ef6.tar.zst freebsd-ports-gnome-fc848829cb3b81098616380b1bf01ce51d0f1ef6.zip |
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/portbuild')
-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 b45a623e2f1d..c3e3ffcabcdd 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 |