1753a7d948c6703020ac48bf5a7da42ade72dd01
[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 . "$SETUP_DATA_DIR/common-data"
13 . "$SETUP_DATA_DIR/common-functions"
14
15 if [ -f "${CHROOT_SCRIPT_CONFIG:-}" ]; then
16     . "$CHROOT_SCRIPT_CONFIG"
17 fi
18
19
20 if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then
21         TGT="${CHROOT_PATH}/etc/apt/apt.conf.d/local-schroot"
22         rm -f "$TGT"
23         cat > "$TGT" << EOF
24 APT::Install-Recommends 0;
25 Acquire::http::Pipeline-Depth "0";
26 Acquire::Languages "none";
27 Acquire::PDiffs "false";
28 EOF
29 #Acquire  {
30 #     http { Proxy "http://10.213.12.1:3128/"; };
31 #     ftp { Proxy "http://10.213.12.1:3128/"; };
32 #}
33 fi