diff --git a/001_apt-proxy_off.sh b/001_apt-proxy_off.sh new file mode 100755 index 0000000..170a774 --- /dev/null +++ b/001_apt-proxy_off.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +bash -c 'rm /etc/apt/apt.conf.d/02proxy' + diff --git a/001_apt-proxy_on.sh b/001_apt-proxy_on.sh new file mode 100755 index 0000000..c2d69a8 --- /dev/null +++ b/001_apt-proxy_on.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +bash -c 'cat > /etc/apt/apt.conf.d/02proxy' << 'EOF' +Acquire::http { Proxy "http://192.168.1.50:3142"; }; +#Acquire::http { Proxy "http://192.168.1.65:3142"; }; +EOF +