mirror of
https://github.com/luzifer-docker/openvpn.git
synced 2024-11-09 10:00:05 +00:00
10 lines
224 B
Bash
10 lines
224 B
Bash
|
#!/usr/bin/dumb-init /bin/bash
|
||
|
set -euxo pipefail
|
||
|
|
||
|
mkdir -p /dev/net
|
||
|
[ -c /dev/net/tun ] || mknod /dev/net/tun c 10 200
|
||
|
|
||
|
[ -f /etc/openvpn/dh2048.pem ] || openssl dhparam -out /etc/openvpn/dh2048.pem 2048
|
||
|
|
||
|
exec openvpn "$@"
|