source: make-mini-image/config/24-repos @ 2905

Last change on this file since 2905 was 1827, checked in by mabarracus, 4 years ago

Final config & renamed scripts

  • Property svn:executable set to *
File size: 926 bytes
Line 
1#!/bin/bash
2set -e
3
4source CONFIG
5source functions
6
7ensure BASE NAME
8
9
10PPA=""
11UBUNTU=""
12WITH=""
13
14if exists IMAGE_WITH_PPA ; then
15    if [ "${IMAGE_WITH_PPA}" = "1" ]; then
16        PPA="deb [trusted=yes] http://ppa.launchpad.net/llxdev/xenial/ubuntu xenial main"
17        WITH+=" ppa"
18    fi
19fi
20
21if exists IMAGE_WITH_UBUNTU ; then
22    if [ "${IMAGE_WITH_UBUNTU}" = "1" ]; then
23        UBUNTU="deb http://es.archive.ubuntu.com/ubuntu xenial main universe multiverse"
24        WITH+=" ubuntu"
25    fi
26fi
27
28echo "Setting up repos ... ${WITH}"
29
30cat > ./${BASE}/${NAME}/etc/apt/sources.list << _EOF
31deb [trusted=yes] http://lliurex.net/xenial xenial main universe multiverse
32deb [trusted=yes] http://lliurex.net/xenial xenial-updates main universe multiverse
33deb [trusted=yes] http://lliurex.net/xenial xenial-security main universe multiverse
34${PPA}
35${UBUNTU}
36_EOF
37
38rm -f ./${BASE}/${NAME}/etc/apt/sources.list.d/*
39
40if [ "$?" != "0" ]; then
41    exit 1
42fi
43
44exit 0
Note: See TracBrowser for help on using the repository browser.