mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50: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
|
||||
done
|
||||
# copy proxy settings
|
||||
if [[ "${PROXY_HTTP}" != "" ]]; then
|
||||
echo "export http_proxy=${PROXY_HTTP}" >> "${DESTDIR}"/etc/profile.d/proxy.sh;
|
||||
chmod a+x "${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
|
||||
if [[ -n "${PROXY}" ]]; then
|
||||
for i in ${PROXIES}; do
|
||||
echo "export ${i}=${PROXY}" >> "${DESTDIR}"/etc/profile.d/proxy.sh
|
||||
chmod a+x "${DESTDIR}"/etc/profile.d/proxy.sh
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue