autoport cron: added support for running icecream in chroot environment

This commit is contained in:
Silvan Calarco 2013-12-14 11:51:37 +01:00
parent dd9fb71c1b
commit ecc3ed74a2
2 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,7 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
#echo "= Updating packages in ${AUTOPORT_CHROOT[$i]} chroot environment..." >> $LOGFILE #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 update --quiet > /dev/null
LANG=C /usr/sbin/chroot /var/autoport/${AUTOPORT_CHROOT[$i]} smart upgrade -y > /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 fi
for r in ${AUTOPORT_REPOSITORIES[$i]}; do for r in ${AUTOPORT_REPOSITORIES[$i]}; do
@ -101,7 +102,8 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
done done
if [ "${AUTOPORT_CHROOT[$i]}" ]; then 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 fi
done done

View File

@ -9,6 +9,7 @@ local_ftp=/var/ftp/pub/openmamba/
#AUTOPORT_DISABLE[0]= #AUTOPORT_DISABLE[0]=
#AUTOPORT_CHROOT[0]=devel-x86_64 #AUTOPORT_CHROOT[0]=devel-x86_64
#AUTOPORT_CHROOT_USER[0]=sdk #AUTOPORT_CHROOT_USER[0]=sdk
#AUTOPORT_CHROOT_ICECREAM[0]=1
#AUTOPORT_CROSS[0]= #AUTOPORT_CROSS[0]=
#AUTOPORT_NATIVE[0]= #AUTOPORT_NATIVE[0]=
#AUTOPORT_REPOSITORIES[0]="devel-makedist" #AUTOPORT_REPOSITORIES[0]="devel-makedist"
@ -17,6 +18,7 @@ local_ftp=/var/ftp/pub/openmamba/
#AUTOPORT_DISABLE[1]= #AUTOPORT_DISABLE[1]=
#AUTOPORT_CHROOT[1]=milestone2-i586 #AUTOPORT_CHROOT[1]=milestone2-i586
#AUTOPORT_CHROOT_USER[1]=sdk #AUTOPORT_CHROOT_USER[1]=sdk
#AUTOPORT_CHROOT_ICECREAM[1]=1
#AUTOPORT_CROSS[1]= #AUTOPORT_CROSS[1]=
#AUTOPORT_NATIVE[1]= #AUTOPORT_NATIVE[1]=
#AUTOPORT_REPOSITORIES[1]="milestone2-makedist" #AUTOPORT_REPOSITORIES[1]="milestone2-makedist"