ovpn-admin/start.sh

19 lines
317 B
Bash
Raw Normal View History

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