Skip to content

Commit 04fd8b8

Browse files
committed
Fixed bugs
1 parent c1b1442 commit 04fd8b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

root/etc/cont-init.d/60-network.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ -n "$(cat /proc/net/dev | grep tun0)" ] && { [ -z "$PERSISTENT_INTERFACE" ]
2525
fi
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
3131
fi

root/etc/services.d/openvpn/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

0 commit comments

Comments
 (0)