bundles/wireguard: fix stderr handling of wg_health_check
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f482874310
commit
0412c9042a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue