Update check-node

This commit is contained in:
Manevolent 2023-04-13 01:16:16 -06:00 committed by GitHub
parent e28d7fa1b4
commit c1cd2221b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ num_macs=`ls /tmp/tinc/peer/$NODE/mac | wc -l`
num_ips=`ls /tmp/tinc/peer/$NODE/ip | wc -l`
if [ "$num_macs" = "1" ]; then
if [ "$num_ips" = "0" ]; then
exit 1
exit 0
fi
mac=`ls /tmp/tinc/peer/$NODE/mac`