bundles/wireguard: less spammy output for wg_health_check
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-10-30 19:36:20 +02:00
parent c04ad04c75
commit ee86b5a121
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -13,8 +13,9 @@ everything_up=1
% for peer, ip in sorted(peers.items()):
# ${peer}
if ! /usr/bin/ping -c 4 ${ip}
if ! /usr/bin/ping -c 4 ${ip} >/dev/null
then
echo "${peer} was not reachable!" >&2
everything_up=0
fi
@ -31,7 +32,7 @@ last_reached="$(cat /var/tmp/wg_all_reached)"
if [[ "$last_reached" -lt "$five_min_ago" ]]
then
echo "RESTART"
echo "RESTART" >&2
systemctl restart systemd-networkd