bundles/wireguard: fix stderr handling of wg_health_check
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2021-10-31 09:49:37 +01:00
parent f482874310
commit 0412c9042a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

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