1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Set the HOME environment variable properly when running cvsup, so

the authentication key file can be found in "~/.cvsup/auth".
This commit is contained in:
John Polstra 2000-02-11 04:23:24 +00:00
parent 9073f0dae1
commit f6cddec5fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25653

View File

@ -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