From ecc3ed74a206239946dddc23c35bb981b1d3dda1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 14 Dec 2013 11:51:37 +0100 Subject: [PATCH] autoport cron: added support for running icecream in chroot environment --- etc/cron.hourly/66-autoport-chroot | 4 +++- etc/sysconfig/autoport | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/cron.hourly/66-autoport-chroot b/etc/cron.hourly/66-autoport-chroot index 32a87a4..03304f8 100755 --- a/etc/cron.hourly/66-autoport-chroot +++ b/etc/cron.hourly/66-autoport-chroot @@ -44,6 +44,7 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do #echo "= Updating packages in ${AUTOPORT_CHROOT[$i]} chroot environment..." >> $LOGFILE LANG=C /usr/sbin/chroot /var/autoport/${AUTOPORT_CHROOT[$i]} smart update --quiet > /dev/null LANG=C /usr/sbin/chroot /var/autoport/${AUTOPORT_CHROOT[$i]} smart upgrade -y > /dev/null + [ "${AUTOPORT_CHROOT_ICECREAM[$i]}" ] && LANG=C /usr/sbin/chroot /etc/init.d/icecream start fi for r in ${AUTOPORT_REPOSITORIES[$i]}; do @@ -101,7 +102,8 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do done if [ "${AUTOPORT_CHROOT[$i]}" ]; then - mv /var/autoport/${AUTOPORT_CHROOT[$i]}/sbin/service.autoport /var/autoport/${AUTOPORT_CHROOT[$i]}/sbin/service + mv /var/autoport/${AUTOPORT_CHROOT[$i]}/sbin/service.autoport /var/autoport/${AUTOPORT_CHROOT[$i]}/sbin/service + [ "${AUTOPORT_CHROOT_ICECREAM[$i]}" ] && LANG=C /usr/sbin/chroot /etc/init.d/icecream stop fi done diff --git a/etc/sysconfig/autoport b/etc/sysconfig/autoport index f05eaed..24b7a0f 100644 --- a/etc/sysconfig/autoport +++ b/etc/sysconfig/autoport @@ -9,6 +9,7 @@ local_ftp=/var/ftp/pub/openmamba/ #AUTOPORT_DISABLE[0]= #AUTOPORT_CHROOT[0]=devel-x86_64 #AUTOPORT_CHROOT_USER[0]=sdk +#AUTOPORT_CHROOT_ICECREAM[0]=1 #AUTOPORT_CROSS[0]= #AUTOPORT_NATIVE[0]= #AUTOPORT_REPOSITORIES[0]="devel-makedist" @@ -17,6 +18,7 @@ local_ftp=/var/ftp/pub/openmamba/ #AUTOPORT_DISABLE[1]= #AUTOPORT_CHROOT[1]=milestone2-i586 #AUTOPORT_CHROOT_USER[1]=sdk +#AUTOPORT_CHROOT_ICECREAM[1]=1 #AUTOPORT_CROSS[1]= #AUTOPORT_NATIVE[1]= #AUTOPORT_REPOSITORIES[1]="milestone2-makedist"