archlinux: fix update-proxy-configs to use pacman.d drop-ins
This commit is contained in:
parent
a346de7e46
commit
7cea09711a
@ -108,6 +108,22 @@ $PROXY_CONF_ENTRY
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Pacman (archlinux) also
|
||||||
|
if [ -d /etc/pacman.d ]; then
|
||||||
|
if [ -n "$PROXY_ADDR" ]; then
|
||||||
|
cat > /etc/pacman.d/01-qubes-proxy.conf <<EOF
|
||||||
|
### This file is automatically generated by Qubes ($0 script).
|
||||||
|
### All modifications here will be lost.
|
||||||
|
### If you want to override some of this settings, create another file under
|
||||||
|
### /etc/pacman.d
|
||||||
|
|
||||||
|
XferCommand = http_proxy=$PROXY_ADDR /usr/bin/curl -C - -f %u > %o
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
rm -r /etc/pacman.d/01-qubes-proxy.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# DNF configuration doesn't support including other files
|
# DNF configuration doesn't support including other files
|
||||||
if [ -e /etc/dnf/dnf.conf ]; then
|
if [ -e /etc/dnf/dnf.conf ]; then
|
||||||
update_conf /etc/dnf/dnf.conf "$PROXY_CONF_ENTRY"
|
update_conf /etc/dnf/dnf.conf "$PROXY_CONF_ENTRY"
|
||||||
@ -117,8 +133,3 @@ 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
|
||||||
|
|
||||||
# Pacman (archlinux) also
|
|
||||||
if [ -e /etc/pacman.conf ]; then
|
|
||||||
update_conf /etc/pacman.conf "XferCommand = http_proxy=$PROXY_ADDR /usr/bin/curl -C - -f %u > %o"
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user