Last change
on this file was
1827,
checked in by mabarracus, 5 years ago
|
Final config & renamed scripts
|
-
Property svn:executable set to
*
|
File size:
926 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | set -e |
---|
3 | |
---|
4 | source CONFIG |
---|
5 | source functions |
---|
6 | |
---|
7 | ensure BASE NAME |
---|
8 | |
---|
9 | |
---|
10 | PPA="" |
---|
11 | UBUNTU="" |
---|
12 | WITH="" |
---|
13 | |
---|
14 | if 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 |
---|
19 | fi |
---|
20 | |
---|
21 | if 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 |
---|
26 | fi |
---|
27 | |
---|
28 | echo "Setting up repos ... ${WITH}" |
---|
29 | |
---|
30 | cat > ./${BASE}/${NAME}/etc/apt/sources.list << _EOF |
---|
31 | deb [trusted=yes] http://lliurex.net/xenial xenial main universe multiverse |
---|
32 | deb [trusted=yes] http://lliurex.net/xenial xenial-updates main universe multiverse |
---|
33 | deb [trusted=yes] http://lliurex.net/xenial xenial-security main universe multiverse |
---|
34 | ${PPA} |
---|
35 | ${UBUNTU} |
---|
36 | _EOF |
---|
37 | |
---|
38 | rm -f ./${BASE}/${NAME}/etc/apt/sources.list.d/* |
---|
39 | |
---|
40 | if [ "$?" != "0" ]; then |
---|
41 | exit 1 |
---|
42 | fi |
---|
43 | |
---|
44 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.