#! /bin/bash if [ -n "$APTPROXY" ]; then echo "Acquire::http::Proxy \"$APTPROXY\";" > $target/etc/apt/apt.conf.d/02proxy else rm -f $target/etc/apt/apt.conf.d/02proxy fi echo force-unsafe-io > $target/etc/dpkg/dpkg.cfg.d/unsafe-io