alexandrev-tibco 2025-08-30 10:27:39 +02:00
parent fd1c781824
commit 73ca5531c0
1 changed files with 5 additions and 3 deletions

View File

@ -155,7 +155,8 @@ update_notes() {
pct exec "$vmid" -- sh -c "$enable_tailscale_check"
echo "[INFO] Verificando configuración del Docker API y métricas en $type $vmid..."
pct exec "$vmid" -- sh -c 'DOCKER_WAIT_SECONDS='"${DOCKER_WAIT_SECONDS:-30}"'; \
WAIT_SECS_HOST="${DOCKER_WAIT_SECONDS:-30}"
pct exec "$vmid" -- env DOCKER_WAIT_SECONDS="$WAIT_SECS_HOST" sh -c '
set -e
mkdir -p /etc/docker
DAEMON_JSON="/etc/docker/daemon.json"
@ -342,8 +343,9 @@ OVR
docker_info="Sin contenedores"
fi
# Formar nota
full_note=$(printf "# Notes:\n%s\n%s\n" "$tailscale_note" "$docker_info")
# Formar nota (todas las líneas comentadas para no romper el .conf)
docker_info_commented=$(printf "%s\n" "$docker_info" | sed "s/^/# /")
full_note=$(printf "# Notes:\n# %s\n%s\n" "$tailscale_note" "$docker_info_commented")
# Añadir al archivo de configuración del contenedor
conf_path="/etc/pve/lxc/${vmid}.conf"