Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit f2108a7

Browse files
author
yacht7
committed
Continue work on the general reliability
1 parent 644849a commit f2108a7

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ RUN \
2020

2121
COPY data/ /data
2222

23+
HEALTHCHECK CMD ping -c 3 1.1.1.1 || exit 1
24+
2325
ENTRYPOINT ["/data/scripts/entry.sh"]

data/scripts/entry.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ sed -i \
6060
-e 's/^proto tcp$/proto tcp4/' \
6161
$config_file_modified
6262

63-
if ! grep -q 'pull-filter ignore "route-ipv6"' $config_file_modified; then
64-
printf '\npull-filter ignore "route-ipv6"' >> $config_file_modified
65-
fi
66-
67-
if ! grep -q 'pull-filter ignore "ifconfig-ipv6"' $config_file_modified; then
68-
printf '\npull-filter ignore "ifconfig-ipv6"' >> $config_file_modified
69-
fi
70-
7163
echo -e "Changes made.\n"
7264

7365
trap cleanup INT TERM
@@ -166,12 +158,9 @@ if [ "$TINYPROXY" = "on" ]; then
166158
/data/scripts/tinyproxy-wrapper.sh &
167159
fi
168160

169-
# /data/scripts/healthcheck.sh &
170-
# healthcheck_child=$!
171-
172161
echo -e "Running OpenVPN client.\n"
173162

174-
openvpn --auth-nocache --cd /data/vpn --verb $vpn_log_level --config $config_file_modified &
163+
openvpn --auth-nocache --config $config_file_modified --verb $vpn_log_level --cd /data/vpn --pull-filter ignore "route-ipv6" --pull-filter ignore "ifconfig-ipv6" --up-restart &
175164
openvpn_child=$!
176165

177166
wait $openvpn_child

data/scripts/healthcheck.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)