2024-01-01 12:14:00 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [ ! -f .env ]; then
|
|
|
|
echo "Please create a .env file"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-01-01 12:52:35 -05:00
|
|
|
set -a
|
2024-01-01 12:14:00 -05:00
|
|
|
source .env
|
2024-01-01 12:52:35 -05:00
|
|
|
set +a
|
2024-01-01 12:14:00 -05:00
|
|
|
|
|
|
|
docker compose -p "$OVPN_COMPOSE_NAME" down "$@"
|
|
|
|
|
|
|
|
for script_file in ./start.d/*.sh
|
|
|
|
do
|
|
|
|
echo "Sourcing ${script_file}"
|
|
|
|
source "${script_file}"
|
|
|
|
done
|