From 811a7c1b46c064044f7064113f351907dea21f59 Mon Sep 17 00:00:00 2001 From: Farid Musa Date: Mon, 1 Jan 2024 21:52:35 +0400 Subject: [PATCH] all export --- reconfigure.sh | 3 ++- start.sh | 2 ++ stop.sh | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/reconfigure.sh b/reconfigure.sh index 1e0d848..e00f6d8 100755 --- a/reconfigure.sh +++ b/reconfigure.sh @@ -5,7 +5,8 @@ if [ ! -f .env ]; then exit 1 fi +set -a source .env - +set +a envsubst < ./nginx/default.conf.tpl > ./nginx/default.conf diff --git a/start.sh b/start.sh index fbcced9..4729460 100755 --- a/start.sh +++ b/start.sh @@ -5,7 +5,9 @@ if [ ! -f .env ]; then exit 1 fi +set -a source .env +set +a for script_file in ./start.d/*.sh do diff --git a/stop.sh b/stop.sh index e439a84..3921a37 100755 --- a/stop.sh +++ b/stop.sh @@ -5,7 +5,9 @@ if [ ! -f .env ]; then exit 1 fi +set -a source .env +set +a docker compose -p "$OVPN_COMPOSE_NAME" down "$@"