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