start.sh
This commit is contained in:
parent
2230565376
commit
ae7a9d4e08
5 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -exo pipefail
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
echo "Please create a .env 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
|
||||
|
|
3
start.sh
3
start.sh
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
3
stop.sh
3
stop.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue