File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if [ -n "$(cat /proc/net/dev | grep tun0)" ] && { [ -z "$PERSISTENT_INTERFACE" ]
2525fi
2626
2727# Create tunnel interface
28- if [ -n " $( cat /proc/net/dev | grep tun0) " ]; then
28+ if [ -z " $( cat /proc/net/dev | grep tun0) " ]; then
2929 echo " Creating tun0 interface"
3030 openvpn --mktun --dev tun0 --dev-type tun --user abc --group abc
3131fi
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3- if [ ! -d "/config/openvpn " ] || [ ! -f "/config/openvpn/system.conf" ]; then
3+ if [ ! -d "/config/openvpn" ] || [ ! -f "/config/openvpn/system.conf" ]; then
44 echo "System configuration is missing"
55 if [ "$FAIL_MODE" != "hard" ]; then
66 # Do nothing until container restart
You can’t perform that action at this time.
0 commit comments