Explorar o código

implement update proxy support for archlinux

Olivier MEDOC %!s(int64=8) %!d(string=hai) anos
pai
achega
9556931808
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      network/update-proxy-configs

+ 5 - 0
network/update-proxy-configs

@@ -117,3 +117,8 @@ fi
 if [ -e /etc/PackageKit/PackageKit.conf ]; then
     update_conf /etc/PackageKit/PackageKit.conf "ProxyHTTP=$PROXY_ADDR"
 fi
+
+# Pacman (archlinux) also
+if [ -e /etc/pacman.conf ]; then
+    update_conf /etc/pacman.conf "XferCommand = http_proxy=$PROXY_ADDR /usr/bin/wget --passive-ftp -c -O %o %u"
+fi