From e09675c2b9e0033d0194abfcb1c0106357eb3521 Mon Sep 17 00:00:00 2001 From: ejose19 Date: Fri, 23 Oct 2020 14:46:58 -0300 Subject: [PATCH] archlinux: improve pacman proxy implementation --- network/update-proxy-configs | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/network/update-proxy-configs b/network/update-proxy-configs index 7bea1f3..6615fec 100755 --- a/network/update-proxy-configs +++ b/network/update-proxy-configs @@ -119,21 +119,26 @@ fi # Pacman (archlinux) also if [ -d /etc/pacman.d ]; then if [ -n "$PROXY_ADDR" ]; then - cat > /etc/pacman.d/01-qubes-proxy.conf < /run/qubes/bin/pacman < /etc/profile.d/qubes-proxy.sh << EOF +### This file is automatically generated by Qubes ($0 script). +### All modifications here will be lost. +export PATH=/run/qubes/bin:\$PATH EOF else - rm -r /etc/pacman.d/01-qubes-proxy.conf + rm -f /run/qubes/bin/pacman + rm -f /etc/profile.d/qubes-proxy.sh fi fi + # DNF configuration doesn't support including other files # https://bugzilla.redhat.com/show_bug.cgi?id=1352234 if [ -e /etc/dnf/dnf.conf ]; then