main
parent
1c06153aa5
commit
44a0afe3c8
|
|
@ -164,7 +164,7 @@ update_notes() {
|
|||
case "$os" in
|
||||
alpine)
|
||||
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"
|
||||
install_base_pkgs="apk add --no-cache docker openssh jq bash"
|
||||
|
||||
# Comprobar si tailscale está instalado
|
||||
check_tailscale_installed=$(pct exec "$vmid" -- sh -c "which tailscale 2>/dev/null || echo notfound")
|
||||
|
|
@ -190,7 +190,7 @@ update_notes() {
|
|||
;;
|
||||
ubuntu)
|
||||
update_cmd="apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y"
|
||||
install_base_pkgs="apt-get install -y docker.io openssh-server jq"
|
||||
install_base_pkgs="apt-get install -y docker.io openssh-server jq bash"
|
||||
|
||||
check_tailscale_installed=$(pct exec "$vmid" -- sh -c "which tailscale 2>/dev/null || echo notfound")
|
||||
if [[ "$check_tailscale_installed" == "notfound" ]]; then
|
||||
|
|
@ -220,7 +220,7 @@ update_notes() {
|
|||
|
||||
echo "[INFO] Verificando configuración del Docker API y métricas en $type $vmid..."
|
||||
WAIT_SECS_HOST="${DOCKER_WAIT_SECONDS:-30}"
|
||||
pct exec "$vmid" -- env DOCKER_WAIT_SECONDS="$WAIT_SECS_HOST" sh -x -c '
|
||||
pct exec "$vmid" -- env DOCKER_WAIT_SECONDS="$WAIT_SECS_HOST" bash -x -c '
|
||||
set -e
|
||||
mkdir -p /etc/docker
|
||||
DAEMON_JSON="/etc/docker/daemon.json"
|
||||
|
|
|
|||
Loading…
Reference in New Issue