diff options
author | John Polstra <jdp@FreeBSD.org> | 2000-02-11 04:23:24 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 2000-02-11 04:23:24 +0000 |
commit | f6cddec5fb1ae1f661691017fd08c2ddf73e6894 (patch) | |
tree | 7b37cec2a4fde79b16533ff5d96e8d1d86dd0101 /net/cvsup-mirror | |
parent | 9073f0dae18be49611bc10b0636433ccda14fb95 (diff) | |
download | ports-f6cddec5fb1ae1f661691017fd08c2ddf73e6894.tar.gz ports-f6cddec5fb1ae1f661691017fd08c2ddf73e6894.zip |
Notes
Diffstat (limited to 'net/cvsup-mirror')
-rw-r--r-- | net/cvsup-mirror/files/update.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/cvsup-mirror/files/update.sh b/net/cvsup-mirror/files/update.sh index ab7021e0281f..f0888ecbba07 100644 --- a/net/cvsup-mirror/files/update.sh +++ b/net/cvsup-mirror/files/update.sh @@ -40,6 +40,8 @@ cd ${rundir} || exit colldir=sup.client startup=${PREFIX}/etc/rc.d +eval chome=~${cuser} +cmd="env HOME=${chome} cvsup" options="-1gL 1 -b ${base} -c ${colldir}" umask 2 @@ -47,16 +49,17 @@ ok=yes if [ ${host_crypto} = ${host} ]; then echo "Updating from ${host}" su -m ${cuser} -c \ - "cvsup ${options} -h ${host} ${base}/supfile" || ok=no + "${cmd} ${options} -h ${host} ${base}/supfile" || ok=no else if [ -d ${base}/prefixes/FreeBSD-crypto.cvs ]; then echo "Updating from ${host_crypto}" su -m ${cuser} -c \ - "cvsup ${options} -h ${host_crypto} ${base}/supfile.crypto" || ok=no + "${cmd} ${options} -h ${host_crypto} ${base}/supfile.crypto" ||\ + ok=no fi echo "Updating from ${host}" su -m ${cuser} -c \ - "cvsup ${options} -h ${host} ${base}/supfile.non-crypto" || ok=no + "${cmd} ${options} -h ${host} ${base}/supfile.non-crypto" || ok=no fi if [ ${ok} = yes ]; then |