mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
fix proxy settings on installed system
This commit is contained in:
parent
b657b0ca26
commit
b5861577f1
1 changed files with 5 additions and 7 deletions
|
@ -55,13 +55,11 @@ auto_network()
|
||||||
[[ -f $i ]] && systemd-nspawn -q -D "${DESTDIR}" netctl enable "$(basename "${i}")" >/dev/null 2>&1
|
[[ -f $i ]] && systemd-nspawn -q -D "${DESTDIR}" netctl enable "$(basename "${i}")" >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
# copy proxy settings
|
# copy proxy settings
|
||||||
if [[ "${PROXY_HTTP}" != "" ]]; then
|
if [[ -n "${PROXY}" ]]; then
|
||||||
echo "export http_proxy=${PROXY_HTTP}" >> "${DESTDIR}"/etc/profile.d/proxy.sh;
|
for i in ${PROXIES}; do
|
||||||
chmod a+x "${DESTDIR}"/etc/profile.d/proxy.sh
|
echo "export ${i}=${PROXY}" >> "${DESTDIR}"/etc/profile.d/proxy.sh
|
||||||
fi
|
|
||||||
if [[ "${PROXY_FTP}" != "" ]]; then
|
|
||||||
echo "export ftp_proxy=${PROXY_FTP}" >> "${DESTDIR}"/etc/profile.d/proxy.sh;
|
|
||||||
chmod a+x "${DESTDIR}"/etc/profile.d/proxy.sh
|
chmod a+x "${DESTDIR}"/etc/profile.d/proxy.sh
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue