Compare commits

..

No commits in common. "453604d1b63c7896b17366bf7e233bc3806d2bad" and "302368a9124a47d9e93e07701c0637b269c6b432" have entirely different histories.

8 changed files with 12 additions and 23 deletions

View File

@ -24,7 +24,7 @@ var_disk="2"
var_cpu="1"
var_ram="1024"
var_os="alpine"
var_version="3.19"
var_version="3.18"
variables
color
catch_errors

View File

@ -24,7 +24,7 @@ var_disk="0.5"
var_cpu="1"
var_ram="256"
var_os="alpine"
var_version="3.19"
var_version="3.18"
variables
color
catch_errors

View File

@ -23,7 +23,7 @@ var_disk="2"
var_cpu="2"
var_ram="1024"
var_os="alpine"
var_version="3.19"
var_version="3.18"
variables
color
catch_errors

View File

@ -24,7 +24,7 @@ var_disk="0.3"
var_cpu="1"
var_ram="256"
var_os="alpine"
var_version="3.19"
var_version="3.18"
variables
color
catch_errors

View File

@ -24,7 +24,7 @@ var_disk="0.3"
var_cpu="1"
var_ram="256"
var_os="alpine"
var_version="3.19"
var_version="3.18"
variables
color
catch_errors

View File

@ -24,7 +24,7 @@ var_disk="0.1"
var_cpu="1"
var_ram="512"
var_os="alpine"
var_version="3.19"
var_version="3.18"
variables
color
catch_errors

View File

@ -340,13 +340,11 @@ advanced_settings() {
echo -e "${DGN}Using Gateway IP Address: ${BGN}Default${CL}"
fi
if [ "$var_os" != "alpine" ]; then
if APT_CACHER_IP=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set APT-Cacher IP (leave blank for default)" 8 58 --title "APT-Cacher IP" 3>&1 1>&2 2>&3); then
APT_CACHER="${APT_CACHER_IP:+yes}"
echo -e "${DGN}Using APT-Cacher IP Address: ${BGN}${APT_CACHER_IP:-Default}${CL}"
else
exit-script
fi
if APT_CACHER_IP=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set APT-Cacher IP (leave blank for default)" 8 58 --title "APT-Cacher IP" 3>&1 1>&2 2>&3); then
APT_CACHER="${APT_CACHER_IP:+yes}"
echo -e "${DGN}Using APT-Cacher IP Address: ${BGN}${APT_CACHER_IP:-Default}${CL}"
else
exit-script
fi
if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then

View File

@ -154,16 +154,7 @@ network_check() {
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
#!/bin/bash
if nc -w1 -z "${CACHER_IP}" 3142; then
echo -n "http://${CACHER_IP}:3142"
else
echo -n "DIRECT"
fi
EOF
chmod +x /usr/local/bin/apt-proxy-detect.sh
echo "Acquire::http { Proxy \"http://${CACHER_IP}:3142\"; };" >/etc/apt/apt.conf.d/00aptproxy
fi
$STD apt-get update
$STD apt-get -o Dpkg::Options::="--force-confold" -y dist-upgrade