#!/bin/sh set -e # Am I a gva? rc=0 chroot /target lliurex-version -t gva || rc=1 if [ $rc -eq 0 ] ; then # Fixed sources.list on dgti installations echo "# Sources.list for DGTI" > /target/etc/apt/sources.list echo "deb http://repositorios.gva.es/dgti/trusty trusty main restricted universe multiverse" >> /target/etc/apt/sources.list echo "deb http://repositorios.gva.es/dgti/trusty trusty-updates main restricted universe multiverse" >> /target/etc/apt/sources.list echo "deb http://repositorios.gva.es/dgti/trusty trusty-security main restricted universe multiverse" >> /target/etc/apt/sources.list echo "# Sources.list for DGTI private repositories" >> /target/etc/apt/sources.list echo "deb http://repositorios.gva.es/dgti/trusty-gva trusty main restricted universe multiverse" >> /target/etc/apt/sources.list echo "deb http://repositorios.gva.es/dgti/trusty-gva trusty-updates main restricted universe multiverse" >> /target/etc/apt/sources.list echo "deb http://repositorios.gva.es/dgti/trusty-gva trusty-security main restricted universe multiverse" >> /target/etc/apt/sources.list # Clean other sources.list #rm -rf /target/etc/apt/sources.list.d/* else echo "You are other flavour" fi chroot /target/ apt-get update exit 0