From 1d3ac4296ab410ed1a7cab1f5215ccb0b77e2c50 Mon Sep 17 00:00:00 2001 From: tecnotel Date: Tue, 12 May 2026 11:50:12 +0200 Subject: [PATCH] fix(bootstrap): supporto Ubuntu 26.04 LTS anche nel bootstrap one-liner Il bootstrap.sh aveva un check OS duplicato di quello in first-setup.sh ("" != "24.04") che bloccava l'installazione su 26.04 PRIMA di scaricare il repo. Applico la stessa logica multi-version SUPPORTED_VERSIONS=("24.04" "26.04") gia' presente in first-setup.sh. Bug rilevato in field-test on Ubuntu 26.04 ASREM 12/05/26. --- bootstrap.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 28ccd29..08e4df5 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,7 @@ #!/bin/bash # ══════════════════════════════════════════════════════════════════════════════ # ARGOS SOC — Bootstrap Installer (one-liner) -# Tecnotel Servizi SRL — Ubuntu 24.04 LTS +# Tecnotel Servizi SRL — Ubuntu 24.04 / 26.04 LTS # # Uso tramite one-liner: # curl -fsSL https://argos-update.tecnotelsrl.com/tecnotel/argos-setup/raw/branch/main/bootstrap.sh | sudo bash @@ -27,9 +27,15 @@ if [[ ! -f /etc/os-release ]]; then error "OS non riconosciuto: /etc/os-release mancante." fi . /etc/os-release -if [[ "$ID" != "ubuntu" || "$VERSION_ID" != "24.04" ]]; then - error "Richiesto Ubuntu 24.04 LTS (trovato: $ID $VERSION_ID)." +SUPPORTED_VERSIONS=("24.04" "26.04") +VERSION_OK=0 +for v in "${SUPPORTED_VERSIONS[@]}"; do + [[ "$VERSION_ID" == "$v" ]] && VERSION_OK=1 +done +if [[ "$ID" != "ubuntu" || $VERSION_OK -eq 0 ]]; then + error "Richiesto Ubuntu 24.04 o 26.04 LTS (trovato: $ID $VERSION_ID)." fi +info "Sistema rilevato: Ubuntu $VERSION_ID LTS" echo "" echo -e "${BLUE}╔══════════════════════════════════════════════════╗${NC}"