We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 533bc7c commit 8e4b3c1Copy full SHA for 8e4b3c1
bin/entrypoint
@@ -8,6 +8,8 @@ ENABLE_NAT=${ENABLE_NAT:-1}
8
NAT_SOURCE=${NAT_SOURCE:-10.8.0.0/24}
9
NAT_DEVICE=${NAT_DEVICE:-eth0}
10
11
+DEBUG=${DEBUG:-0}
12
+
13
# Create device for tun interfaces
14
mkdir -p /dev/net
15
if [ ! -c /dev/net/tun ]; then
@@ -24,4 +26,9 @@ if [[ -e ${USER_STARTUP_SCRIPT} ]]; then
24
26
${USER_STARTUP_SCRIPT}
25
27
fi
28
29
+# Redirect output to /dev/null unless in debug mode
30
+if [[ $DEBUG = 0 ]]; then
31
+ exec &>/dev/null
32
+fi
33
34
exec openvpn --config ${CONFIG_DIR}/openvpn.conf --cd ${CONFIG_DIR} $@
0 commit comments