17 lines
403 B
Bash
Executable file
17 lines
403 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
INSTALLATION_NAME='{INSTALLATION_NAME}'
|
|
TAG='{TAG}'
|
|
|
|
|
|
source "/etc/$INSTALLATION_NAME.conf"
|
|
|
|
|
|
docker run -it --cap-add NET_ADMIN \
|
|
-v /etc/passwd:/etc/passwd \
|
|
-v /etc/openvpn/client:/etc/openvpn/client \
|
|
-v "$HOME:$HOME" \
|
|
-e OVPN_USER="$USER" \
|
|
-e OVPN_HOME="$HOME" \
|
|
-e OVPN_CONFIGURATION_FILE="/etc/openvpn/client/$OVPN_CONFIGURATION_FILE" \
|
|
"$TAG" sh
|