From f975a75e2368e791ad7a00b871024af4a66a386d Mon Sep 17 00:00:00 2001 From: dranik Date: Thu, 4 Jun 2026 15:56:37 +0300 Subject: [PATCH] remove comment --- client/server_scripts/openvpn/run_container.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/server_scripts/openvpn/run_container.sh b/client/server_scripts/openvpn/run_container.sh index 54d8aab15..385981c36 100644 --- a/client/server_scripts/openvpn/run_container.sh +++ b/client/server_scripts/openvpn/run_container.sh @@ -7,11 +7,6 @@ sudo docker run -d \ -p $OPENVPN_PORT:$OPENVPN_PORT/$OPENVPN_TRANSPORT_PROTO \ --name $CONTAINER_NAME $CONTAINER_NAME -# Wait until the container is actually running before the network/exec steps. -# DH generation was removed, so this phase now finishes in ~2s instead of up to -# minutes; without this guard a slow Docker daemon (or a leftover container from a -# previous deploy) could let later steps race ahead and fail with "No such -# container". Single-line on purpose (script runs as one batched shell). ~15s cap. amn_i=0; while [ "$(sudo docker inspect -f '{{.State.Running}}' $CONTAINER_NAME 2>/dev/null)" != "true" ] && [ $amn_i -lt 30 ]; do sleep 0.5; amn_i=$((amn_i+1)); done sudo docker network connect amnezia-dns-net $CONTAINER_NAME