summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-02-11 04:23:24 +0000
committerjdp <jdp@FreeBSD.org>2000-02-11 04:23:24 +0000
commitc0404b22ebc3da740dfe4a7f636dbb87d95443ef (patch)
tree792929682ba9daf5342c9c781d5d89f5bb11b82b /net
parent79cf7c5660d890e8205bebd5a8cd9a6a79b72b10 (diff)
downloadFreeBSD-ports-c0404b22ebc3da740dfe4a7f636dbb87d95443ef.zip
FreeBSD-ports-c0404b22ebc3da740dfe4a7f636dbb87d95443ef.tar.gz
Set the HOME environment variable properly when running cvsup, so
the authentication key file can be found in "~/.cvsup/auth".
Diffstat (limited to 'net')
-rw-r--r--net/cvsup-mirror/files/update.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/cvsup-mirror/files/update.sh b/net/cvsup-mirror/files/update.sh
index ab7021e..f0888ec 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
OpenPOWER on IntegriCloud