mirror of
https://github.com/flant/ovpn-admin.git
synced 2026-02-04 01:10:22 -08:00
19 lines
317 B
Bash
Executable File
19 lines
317 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ ! -f .env ]; then
|
|
echo "Please create a .env file"
|
|
exit 1
|
|
fi
|
|
|
|
set -a
|
|
source .env
|
|
set +a
|
|
|
|
docker compose -p "$OVPN_COMPOSE_NAME" up -d --force-recreate --always-recreate-deps "$@"
|
|
|
|
for script_file in ./start.d/*.sh
|
|
do
|
|
echo "Sourcing ${script_file}"
|
|
source "${script_file}"
|
|
done
|