mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Fix _install_apt_proxy.sh
This commit is contained in:
@@ -5,6 +5,7 @@ set -o nounset
|
|||||||
|
|
||||||
if test -f /etc/apt/apt.conf.d/90-proxy ; then
|
if test -f /etc/apt/apt.conf.d/90-proxy ; then
|
||||||
echo "Looks already setup."
|
echo "Looks already setup."
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat >/etc/apt/proxy-detect <<'EOF'
|
cat >/etc/apt/proxy-detect <<'EOF'
|
||||||
@@ -25,7 +26,7 @@ fi
|
|||||||
echo DIRECT
|
echo DIRECT
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x /etc/apt/proxy-detect
|
chmod 755 /etc/apt/proxy-detect
|
||||||
|
|
||||||
cat >/etc/apt/apt.conf.d/90-proxy <<'EOF'
|
cat >/etc/apt/apt.conf.d/90-proxy <<'EOF'
|
||||||
Acquire::http::Proxy-Auto-Detect "/etc/apt/proxy-detect";
|
Acquire::http::Proxy-Auto-Detect "/etc/apt/proxy-detect";
|
||||||
|
|||||||
Reference in New Issue
Block a user