1
0
Fork 0
mirror of synced 2024-05-26 20:11:14 -04:00
ovpn-admin/start.sh
2024-01-01 21:14:00 +04:00

17 lines
303 B
Bash
Executable file

#!/usr/bin/env bash
if [ ! -f .env ]; then
echo "Please create a .env file"
exit 1
fi
source .env
for script_file in ./start.d/*.sh
do
echo "Sourcing ${script_file}"
source "${script_file}"
done
docker compose -p "$OVPN_COMPOSE_NAME" up -d --force-recreate --always-recreate-deps "$@"