65-autoport-native cron: fix detecting home dir for log

This commit is contained in:
Silvan Calarco 2014-05-24 16:43:32 +02:00
parent 24f57a4cd4
commit 82ab9d49c9

View File

@ -61,7 +61,7 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
LANG=C smart upgrade -y >> $LOGFILE
echo "= Working on $r($a) in native mode" >> $LOGFILE
su -l ${AUTOPORT_CHROOT_USER[$i]} -c "$CMD_PREFIX autoport -b -r $r" >> $LOGFILE
AUTODIST_HOME=`getent passwd autodist | cut -d: -f6`
AUTODIST_HOME=`getent passwd ${AUTOPORT_CHROOT_USER[$i]} | cut -d: -f6`
cat $AUTODIST_HOME/.autoport/$a/$r-current.log >> $LOGFILE
fi