This commit is contained in:
Farid Musa 2024-01-01 21:54:51 +04:00
parent 2230565376
commit ae7a9d4e08
5 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -exo pipefail
if [ ! -f .env ]; then
echo "Please create a .env file"

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -ex
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

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -exo pipefail
if [ ! -f .env ]; then
echo "Please create a .env file"
@ -9,7 +10,7 @@ set -a
source .env
set +a
docker compose -p "$OVPN_COMPOSE_NAME" up -d --force-recreate --always-recreate-deps "$@"
docker-compose -p "$OVPN_COMPOSE_NAME" up -d --force-recreate --always-recreate-deps "$@"
for script_file in ./start.d/*.sh
do

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -ex
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

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -exo pipefail
if [ ! -f .env ]; then
echo "Please create a .env file"
@ -9,7 +10,7 @@ set -a
source .env
set +a
docker compose -p "$OVPN_COMPOSE_NAME" down "$@"
docker-compose -p "$OVPN_COMPOSE_NAME" down "$@"
for script_file in ./start.d/*.sh
do