update-proxy-configs: handle Portage(Gentoo)

This commit is contained in:
Frédéric Pierret (fepitre) 2020-07-13 17:21:27 +02:00
parent 940b0f3646
commit a6c5e6094c
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -144,3 +144,9 @@ fi
if [ -e /etc/PackageKit/PackageKit.conf ]; then if [ -e /etc/PackageKit/PackageKit.conf ]; then
update_conf /etc/PackageKit/PackageKit.conf "ProxyHTTP=$PROXY_ADDR" update_conf /etc/PackageKit/PackageKit.conf "ProxyHTTP=$PROXY_ADDR"
fi fi
# Portage (Gentoo)
if [ -e /etc/portage/make.conf ]; then
update_conf /etc/portage/make.conf "http_proxy=\"$PROXY_ADDR\"
https_proxy=\"$PROXY_ADDR\""
fi