mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-14 19:29:48 +00:00
Fix Apt-Cacher Issue with CAT
This commit is contained in:
parent
5ad9323944
commit
8d91a5df5f
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ update_os() {
|
|||
msg_info "Updating Container OS"
|
||||
if [[ "$CACHER" == "yes" ]]; then
|
||||
echo "Acquire::http::Proxy-Auto-Detect \"/usr/local/bin/apt-proxy-detect.sh\";" >/etc/apt/apt.conf.d/00aptproxy
|
||||
cat <<EOF >/usr/local/bin/apt-proxy-detect.sh
|
||||
cat <<'EOF' >/usr/local/bin/apt-proxy-detect.sh
|
||||
#!/bin/bash
|
||||
if nc -w1 -z "${CACHER_IP}" 3142; then
|
||||
echo -n "http://${CACHER_IP}:3142"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue