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}"