fix proxy settings on installed system

This commit is contained in:
Tobias Powalowski 2022-04-30 08:57:08 +02:00
parent b657b0ca26
commit b5861577f1

View file

@ -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
}