diff --git a/etc/cron.daily/40-autodist-cleanold b/etc/cron.daily/40-autodist-cleanold index 5b8063d..3278e46 100755 --- a/etc/cron.daily/40-autodist-cleanold +++ b/etc/cron.daily/40-autodist-cleanold @@ -22,12 +22,12 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do find /var/autoport/$a/tmp/ -maxdepth 1 -ctime +25 -exec rm -rf {} \; elif [ "${AUTOPORT_UPDATE[$i]}" ]; then clean /var/autodist ${AUTOPORT_ARCH[$i]} - find /var/tmp/autodist/ -maxdepth 1 -ctime +25 -exec rm -rf {} \; + find /var/autodist-tmp/ -maxdepth 1 -ctime +25 -exec rm -rf {} \; elif [ "${AUTOPORT_NATIVE[$i]}" -a "${AUTOPORT_CHROOT_USER[$i]}" ]; then WORKINGHOME=`getent passwd ${AUTOPORT_CHROOT_USER[$i]} | cut -d: -f6` if [ -e $WORKINGHOME ]; then clean $WORKINGHOME ${AUTOPORT_ARCH[$i]} fi - find /var/tmp/autodist/ -maxdepth 1 -ctime +25 -exec rm -rf {} \; + find /var/autodist-tmp/ -maxdepth 1 -ctime +25 -exec rm -rf {} \; fi done diff --git a/etc/cron.hourly/60-autodist-update b/etc/cron.hourly/60-autodist-update index 4a662ac..afe0c95 100755 --- a/etc/cron.hourly/60-autodist-update +++ b/etc/cron.hourly/60-autodist-update @@ -7,6 +7,10 @@ . /etc/sysconfig/autoport ME=`basename $0` + +# FIXME: parametrize automaint call +automaint -s devel-autodist -d devel -p devel-makedist + [ "$$" == "`pidof -x $ME`" -o "$$" == "`pidof -x 60-autodist-update`" ] || { # echo "Warning: $ME script already running; exiting." exit 0