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 "$@"