diff options
author | kris <kris@FreeBSD.org> | 2004-11-25 00:07:24 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-11-25 00:07:24 +0000 |
commit | 6abc07ca800757eeaf98d50e3455ae317f5a606e (patch) | |
tree | 9c1d70b1567a49a558a0a591598e42caa2c36a0a /Tools/portbuild | |
parent | b092a721c3a20d13c230fc64e0679451d2012629 (diff) | |
download | FreeBSD-ports-6abc07ca800757eeaf98d50e3455ae317f5a606e.zip FreeBSD-ports-6abc07ca800757eeaf98d50e3455ae317f5a606e.tar.gz |
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
Diffstat (limited to 'Tools/portbuild')
-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 e17af71..dea397e 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}/ |