diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2004-11-25 00:07:24 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2004-11-25 00:07:24 +0000 |
commit | 4b1cca1ab39e4aac28bcf8b73c84fd4e6a3524ad (patch) | |
tree | 76f5803e99c3b3acf407b92833f71d8b3dc9f9db /Tools | |
parent | Fix two typos (diff) |
If sudo_cmd is set, assume we need to chown the files we created on
the client to the client_user so they can later write to them
Notes
Notes:
svn path=/head/; revision=122362
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dosetupnode | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/dosetupnode b/Tools/portbuild/scripts/dosetupnode index e17af71bbe23..dea397e48248 100755 --- a/Tools/portbuild/scripts/dosetupnode +++ b/Tools/portbuild/scripts/dosetupnode @@ -21,6 +21,9 @@ 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 + ssh -n ${client_user}@${node} ${sudo_cmd} "chown -R ${client_user} /var/portbuild/" +fi if [ "${disconnected}" = 1 ]; then rsync ${rsync_gzip} -r -l -p --delete ${pb}/scripts ${client_user}@${node}:${pb}/ |