bafb085995
- templates proxmox/ (update-analyze: dépôts PVE ; full-upgrade) et raspbian/ (update-analyze: espace disque ; full-upgrade) - execute résout les actions APT par profil OS (resolveTemplate) → proxmox/ raspbian si dispo, sinon fallback apt/ (non-régression debian/ubuntu vérifiée) - machine_probe (lecture seule) : template + parseProbe/proposeCorrections (TDD) → propose os_family/machine_kind/virtualization, persiste machine_hardware, n'applique jamais auto ; branche execute + allowlist route - apt_proxy_persistent : ActionType + template idempotent (/etc/apt/apt.conf.d/ 01proxy, backup) + TemplateVars.aptProxyUrl + allowlist route tsc 0 · 95 tests · build OK · résolution OS vérifiée. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
38 lines
1.2 KiB
Smarty
38 lines
1.2 KiB
Smarty
#!/bin/sh
|
|
# Proxmox VE : refresh index + simulations + held + reboot-check + état des dépôts PVE.
|
|
# Non destructif. Exécuté entier sous sudo par la couche SSH.
|
|
export LC_ALL=C
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
{{#aptProxy}}export http_proxy="{{aptProxy}}"; export https_proxy="{{aptProxy}}"
|
|
{{/aptProxy}}
|
|
|
|
echo "===SU:PVE_REPOS==="
|
|
# Détecte le dépôt entreprise actif sans abonnement (cause classique d'échec apt update).
|
|
grep -RhsE '^[^#]*deb .*enterprise\.proxmox\.com' /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null \
|
|
| sed 's/^/ENTERPRISE_REPO=/' || true
|
|
grep -RhsE '^[^#]*deb .*download\.proxmox\.com.*pve-no-subscription' /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null \
|
|
| sed 's/^/NOSUB_REPO=/' || true
|
|
|
|
echo "===SU:APT_UPDATE==="
|
|
apt-get update -qq 2>&1
|
|
UPD=$?
|
|
|
|
echo "===SU:APT_SIM_UPGRADE==="
|
|
apt-get -s -y upgrade 2>&1
|
|
|
|
echo "===SU:APT_SIM_DISTUPGRADE==="
|
|
apt-get -s -y dist-upgrade 2>&1
|
|
|
|
echo "===SU:APT_HELD==="
|
|
apt-mark showhold 2>/dev/null
|
|
|
|
echo "===SU:REBOOT==="
|
|
if [ -f /run/reboot-required ] || [ -f /var/run/reboot-required ]; then
|
|
echo "REBOOT_REQUIRED=1"
|
|
[ -f /var/run/reboot-required.pkgs ] && sed 's/^/PKG=/' /var/run/reboot-required.pkgs
|
|
else
|
|
echo "REBOOT_REQUIRED=0"
|
|
fi
|
|
|
|
echo "===SU:EXIT=${UPD}==="
|