Split to give on and off for apt-proxy.

This commit is contained in:
Cyteen May 2020-02-23 13:19:32 +00:00
parent 01dd5a5f96
commit cb5eb50cfe
2 changed files with 9 additions and 0 deletions

3
001_apt-proxy_off.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
bash -c 'rm /etc/apt/apt.conf.d/02proxy'

6
001_apt-proxy_on.sh Executable file
View File

@ -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