autoport cron: added support for running icecream in chroot environment
This commit is contained in:
parent
dd9fb71c1b
commit
ecc3ed74a2
@ -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
|
||||
@ -102,6 +103,7 @@ for i in `seq 0 ${#AUTOPORT_ARCH[*]}`; do
|
||||
|
||||
if [ "${AUTOPORT_CHROOT[$i]}" ]; then
|
||||
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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user