From 71393a503e8388a4f9d71634ee7bc788b859d1be Mon Sep 17 00:00:00 2001 From: Farid Musa Date: Mon, 1 Jan 2024 21:58:53 +0400 Subject: [PATCH] fix --- start.d/internal_dns.sh | 2 +- stop.d/internal_dns.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/start.d/internal_dns.sh b/start.d/internal_dns.sh index c51d632..4c0baf0 100644 --- a/start.d/internal_dns.sh +++ b/start.d/internal_dns.sh @@ -4,5 +4,5 @@ set -exo pipefail dns_container_id="$(docker ps | grep "$OVPN_DNS_CONTAINER_NAME_PATTERN" | awk '{ print $1 }' 2> /dev/null)" if [ "$dns_container_id" != "" ]; then echo "Connecting network 'vpnet' to $dns_container_id" - docker network connect vpnet "$dns_container_id" + docker network connect ${OVPN_COMPOSE_NAME}_vpnet "$dns_container_id" fi diff --git a/stop.d/internal_dns.sh b/stop.d/internal_dns.sh index 937ad1b..4d9d480 100644 --- a/stop.d/internal_dns.sh +++ b/stop.d/internal_dns.sh @@ -4,5 +4,5 @@ set -exo pipefail dns_container_id="$(docker ps | grep "$OVPN_DNS_CONTAINER_NAME_PATTERN" | awk '{ print $1 }' 2> /dev/null)" if [ "$dns_container_id" != "" ]; then echo "Disconnecting network 'vpnet' from $dns_container_id" - docker network disconnect vpnet "$dns_container_id" + docker network disconnect ${OVPN_COMPOSE_NAME}_vpnet "$dns_container_id" fi