mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Add "-f" to all "su" invocations for better behavior when the login
shell is csh. Submitted by: ache
This commit is contained in:
parent
d33e8b4683
commit
9a07481b47
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26573
@ -19,7 +19,7 @@ cd ${rundir} || exit
|
||||
arg=${1:-start}
|
||||
case $arg in
|
||||
start)
|
||||
su -m ${user} -c \
|
||||
su -f -m ${user} -c \
|
||||
"cvsupd -e -C 100 -l @${facility} -b ${base} -s sup.client" \
|
||||
>>${out} 2>&1;;
|
||||
|
||||
|
@ -48,17 +48,17 @@ umask 2
|
||||
ok=yes
|
||||
if [ ${host_crypto} = ${host} ]; then
|
||||
echo "Updating from ${host}"
|
||||
su -m ${cuser} -c \
|
||||
su -f -m ${cuser} -c \
|
||||
"${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 \
|
||||
su -f -m ${cuser} -c \
|
||||
"${cmd} ${options} -h ${host_crypto} ${base}/supfile.crypto" ||\
|
||||
ok=no
|
||||
fi
|
||||
echo "Updating from ${host}"
|
||||
su -m ${cuser} -c \
|
||||
su -f -m ${cuser} -c \
|
||||
"${cmd} ${options} -h ${host} ${base}/supfile.non-crypto" || ok=no
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user