Compare commits

..

4 Commits

Author SHA1 Message Date
tteckster 453604d1b6
Update build.func
tweak
2024-02-12 07:17:23 -05:00
tteckster 749639b1f0
Update to Alpine 3.19 2024-02-12 06:55:25 -05:00
tteckster 3093af9b4f
Update alpine-docker.sh
Alpine 3.19
2024-02-12 06:47:26 -05:00
tteckster ffd2fc3b86
Update install.func
Check to see if the apt-cacher-ng proxy is available before attempting to use it. If it's not available, the system will directly communicate with the apt repositories.
2024-02-12 05:53:26 -05:00
8 changed files with 23 additions and 12 deletions

View File

@ -24,7 +24,7 @@ var_disk="2"
var_cpu="1"
var_ram="1024"
var_os="alpine"
var_version="3.18"
var_version="3.19"
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.18"
var_version="3.19"
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.18"
var_version="3.19"
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.18"
var_version="3.19"
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.18"
var_version="3.19"
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.18"
var_version="3.19"
variables
color
catch_errors

View File

@ -340,12 +340,14 @@ 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
fi
if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then
DISABLEIP6="yes"

View File

@ -154,7 +154,16 @@ network_check() {
update_os() {
msg_info "Updating Container OS"
if [[ "$CACHER" == "yes" ]]; then
echo "Acquire::http { Proxy \"http://${CACHER_IP}:3142\"; };" >/etc/apt/apt.conf.d/00aptproxy
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
fi
$STD apt-get update
$STD apt-get -o Dpkg::Options::="--force-confold" -y dist-upgrade