This repository was archived by the owner on Mar 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed
Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change 2020
2121COPY data/ /data
2222
23+ HEALTHCHECK CMD ping -c 3 1.1.1.1 || exit 1
24+
2325ENTRYPOINT ["/data/scripts/entry.sh" ]
Original file line number Diff line number Diff 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-
7163echo -e " Changes made.\n"
7264
7365trap cleanup INT TERM
@@ -166,12 +158,9 @@ if [ "$TINYPROXY" = "on" ]; then
166158 /data/scripts/tinyproxy-wrapper.sh &
167159fi
168160
169- # /data/scripts/healthcheck.sh &
170- # healthcheck_child=$!
171-
172161echo -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 &
175164openvpn_child=$!
176165
177166wait $openvpn_child
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments