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.
This commit is contained in:
parent
58f4bf9de4
commit
1d3ac4296a
12
bootstrap.sh
12
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}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue