mirror of
https://github.com/flant/ovpn-admin.git
synced 2026-02-04 01:10:22 -08:00
fix
This commit is contained in:
parent
71393a503e
commit
9d21df39a4
@ -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 ${OVPN_COMPOSE_NAME}_vpnet "$dns_container_id"
|
||||
docker network connect ${OVPN_COMPOSE_NAME}_ovpn-net "$dns_container_id"
|
||||
fi
|
||||
|
||||
@ -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 ${OVPN_COMPOSE_NAME}_vpnet "$dns_container_id"
|
||||
docker network disconnect ${OVPN_COMPOSE_NAME}_ovpn-net "$dns_container_id"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user