Guard schroot setup scripts with PROFILE = dsa
[mirror/dsa-puppet.git] / modules / porterbox / files / schroot-setup.d / 99porterbox-extra-apt-options
1 #!/bin/bash
2
3 ##
4 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
5 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 ##
7
8 # by weasel
9
10 set -e
11
12 [ "$CHROOT_PROFILE" = "dsa" ] || exit 0
13
14 . "$SETUP_DATA_DIR/common-data"
15 . "$SETUP_DATA_DIR/common-functions"
16
17 if [ -f "${CHROOT_SCRIPT_CONFIG:-}" ]; then
18     . "$CHROOT_SCRIPT_CONFIG"
19 fi
20
21
22 if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then
23         TGT="${CHROOT_PATH}/etc/apt/apt.conf.d/local-schroot"
24         rm -f "$TGT"
25         cat > "$TGT" << EOF
26 APT::Install-Recommends 0;
27 Acquire::http::Pipeline-Depth "0";
28 Acquire::Languages "none";
29 Acquire::PDiffs "false";
30 EOF
31 #Acquire  {
32 #     http { Proxy "http://10.213.12.1:3128/"; };
33 #     ftp { Proxy "http://10.213.12.1:3128/"; };
34 #}
35 fi