OpenVPN wrapper for Pinecrypt Gateway
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
set -e
|
|
CONFIG=/server-secrets/openvpn-$1.conf
|
|
while [ ! -e $CONFIG ]; do
|
|
sleep 1
|
|
done
|
|
curl -X DELETE http://127.0.0.1:2001/api/by-service/openvpn-$1
|
|
openvpn --config $CONFIG
|
|
|