diff --git a/etc/cron.hourly/65-autoport-native b/etc/cron.hourly/65-autoport-native index 5a6b4e1..58a7729 100755 --- a/etc/cron.hourly/65-autoport-native +++ b/etc/cron.hourly/65-autoport-native @@ -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