13 lines
307 B
Bash
13 lines
307 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
BIN_PATH="$(pwd)/detect-http-proxy"
|
|
CONF_PATH="/etc/apt/apt.conf.d/30detectproxy"
|
|
|
|
echo "[*] Installing detect-http-proxy to ${BIN_PATH}"
|
|
chmod +x detect-http-proxy
|
|
|
|
echo "[*] Copying APT config to ${CONF_PATH}"
|
|
sudo cp 30detectproxy $CONF_PATH
|
|
|
|
echo "[*] Done. Now run: sudo apt update" |