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" ]
25
25
fi
26
26
27
27
# Create tunnel interface
28
- if [ -n " $( cat /proc/net/dev | grep tun0) " ]; then
28
+ if [ -z " $( cat /proc/net/dev | grep tun0) " ]; then
29
29
echo " Creating tun0 interface"
30
30
openvpn --mktun --dev tun0 --dev-type tun --user abc --group abc
31
31
fi
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
- if [ ! -d "/config/openvpn " ] || [ ! -f "/config/openvpn/system.conf" ]; then
3
+ if [ ! -d "/config/openvpn" ] || [ ! -f "/config/openvpn/system.conf" ]; then
4
4
echo "System configuration is missing"
5
5
if [ "$FAIL_MODE" != "hard" ]; then
6
6
# Do nothing until container restart
You can’t perform that action at this time.
0 commit comments