2013-02-14 11:16:00 +13:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-04-02 21:24:15 -05:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2013-02-14 11:16:00 +13:00
|
|
|
|
|
|
|
[ -n "$TARGET_ROOT" ]
|
|
|
|
|
|
|
|
# If we have a network proxy, use it.
|
2014-04-03 17:49:18 -05:00
|
|
|
if [ -n "${http_proxy:-}" ] ; then
|
2013-02-14 11:16:00 +13:00
|
|
|
sudo dd of=$TARGET_ROOT/etc/apt/apt.conf.d/60img-build-proxy << _EOF_
|
|
|
|
Acquire::http::Proxy "$http_proxy";
|
|
|
|
_EOF_
|
|
|
|
fi
|