Files
gluetun/healthcheck.sh
Quentin McGaw a3bfa2d77a Changed healthcheck to only ping 1.1.1.1 to check connectivity
This is because your VPN public IP might not be the VPN server entrance IP address, resulting in the container being unhealthy most of the time.
2019-01-15 14:40:28 +01:00

9 lines
171 B
Bash

#!/bin/sh
ping -W 1 -w 1 -q -s 8 1.1.1.1 &> /dev/null
status=$?
if [ $status = 0 ]; then
exit 0
fi
printf "Pinging 1.1.1.1 resulted in error status code $status"
exit 1