Only try to chown the portbuild directory if we are a disconnected client

(i.e. it is not mounted by nfs)
This commit is contained in:
Kris Kennaway
2005-02-12 03:39:16 +00:00
parent 9e2b178527
commit 5afe4a4daa
+1 -1
View File
@@ -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