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