@@ -1,33 +1,33 | |||||
1 | # |
|
1 | # | |
2 | # Setup APT repositories |
|
2 | # Setup APT repositories | |
3 | # |
|
3 | # | |
4 |
|
4 | |||
5 | # Load utility functions |
|
5 | # Load utility functions | |
6 | . ./functions.sh |
|
6 | . ./functions.sh | |
7 |
|
7 | |||
8 | # Install and setup APT proxy configuration |
|
8 | # Install and setup APT proxy configuration | |
9 | if [ -z "$APT_PROXY" ] ; then |
|
9 | if [ -z "$APT_PROXY" ] ; then | |
10 | install_readonly files/apt/10proxy "${ETC_DIR}/apt/apt.conf.d/10proxy" |
|
10 | install_readonly files/apt/10proxy "${ETC_DIR}/apt/apt.conf.d/10proxy" | |
11 | sed -i "s/\"\"/\"${APT_PROXY}\"/" "${ETC_DIR}/apt/apt.conf.d/10proxy" |
|
11 | sed -i "s/\"\"/\"${APT_PROXY}\"/" "${ETC_DIR}/apt/apt.conf.d/10proxy" | |
12 | fi |
|
12 | fi | |
13 |
|
13 | |||
14 | # Upgrade package index and update all installed packages and changed dependencies |
|
14 | # Upgrade package index and update all installed packages and changed dependencies | |
15 | chroot_exec apt-get -qq -y update |
|
15 | chroot_exec apt-get -qq -y update | |
16 | chroot_exec apt-get -qq -y -u dist-upgrade |
|
16 | chroot_exec apt-get -qq -y -u dist-upgrade | |
17 |
|
17 | |||
18 | # Install additional packages |
|
18 | # Install additional packages | |
19 | if [ "$APT_INCLUDES_LATE" ] ; then |
|
19 | if [ "$APT_INCLUDES_LATE" ] ; then | |
20 |
chroot_exec apt-get -qq -y install |
|
20 | chroot_exec apt-get -qq -y install $(echo "$APT_INCLUDES_LATE" |tr , ' ') | |
21 | fi |
|
21 | fi | |
22 |
|
22 | |||
23 | # Install Debian custom packages |
|
23 | # Install Debian custom packages | |
24 | if [ -d packages ] ; then |
|
24 | if [ -d packages ] ; then | |
25 | for package in packages/*.deb ; do |
|
25 | for package in packages/*.deb ; do | |
26 | cp "$package" "${R}"/tmp |
|
26 | cp "$package" "${R}"/tmp | |
27 | chroot_exec dpkg --unpack /tmp/"$(basename "$package")" |
|
27 | chroot_exec dpkg --unpack /tmp/"$(basename "$package")" | |
28 | done |
|
28 | done | |
29 | fi |
|
29 | fi | |
30 |
|
30 | |||
31 | chroot_exec apt-get -qq -y -f install |
|
31 | chroot_exec apt-get -qq -y -f install | |
32 |
|
32 | |||
33 | chroot_exec apt-get -qq -y check |
|
33 | chroot_exec apt-get -qq -y check |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant