1
0
Fork 0
mirror of synced 2024-11-16 14:15:34 -05:00
ovpn-admin/reconfigure.sh
Farid Musa 3d6c5a1cb2 fix
2024-01-01 22:02:28 +04:00

14 lines
270 B
Bash
Executable file

#!/usr/bin/env bash
set -eo pipefail
if [ ! -f .env ]; then
echo "Please create a .env file"
exit 1
fi
set -a
source .env
set +a
envsubst < ./nginx/default.conf.tpl > ./nginx/default.conf
envsubst < ./ovpn_config/openvpn.conf.tpl > ./ovpn_config/openvpn.conf