From da1082077e27d310955afef34239c11d2b316b0f Mon Sep 17 00:00:00 2001 From: alexandrev-tibco Date: Sat, 30 Aug 2025 10:02:57 +0200 Subject: [PATCH] +1 --- manage-lxc-vm-notes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage-lxc-vm-notes.sh b/manage-lxc-vm-notes.sh index e0ee349..d37a7cc 100755 --- a/manage-lxc-vm-notes.sh +++ b/manage-lxc-vm-notes.sh @@ -17,7 +17,7 @@ update_notes() { # Comandos por OS case "$os" in alpine) - update_cmd="apk update && apk upgrade --no-cache" + update_cmd="tries=5; for i in \$(seq 1 \$tries); do if apk update; then ok=1; break; else echo \"[WARN] apk update failed (\$i/\$tries). Retrying in \$((i*2))s...\"; sleep \$((i*2)); fi; done; [ \"\${ok:-0}\" = \"1\" ] || echo \"[WARN] Proceeding with stale indexes\"; apk upgrade --no-cache || echo \"[WARN] apk upgrade failed; continuing\"" install_base_pkgs="apk add --no-cache docker openssh jq" # Comprobar si tailscale está instalado