From cb5eb50cfe3ae3d1643468baed36c7cf17e5d9ae Mon Sep 17 00:00:00 2001 From: Cyteen May Date: Sun, 23 Feb 2020 13:19:32 +0000 Subject: [PATCH] Split to give on and off for apt-proxy. --- 001_apt-proxy_off.sh | 3 +++ 001_apt-proxy_on.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100755 001_apt-proxy_off.sh create mode 100755 001_apt-proxy_on.sh 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 +