Add new porterbox class
[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 elif [ "$STATUS" = "ok" ]; then
18     fatal "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist"
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