Skip to content

Commit

Permalink
chore: 🤖 healthcheck increase output lines lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Oct 18, 2023
1 parent 61f01de commit 7a6c230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/healthcheck
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ warningCount=0
echo

if ! curl -qsS localhost:4230/health 2>/dev/null | grep -q 'OK'; then
if tail -n 5 "$defaultLightningOutputLogAbsPath" | grep -iq "Node is not staked"; then
if tail -n 500 "$defaultLightningOutputLogAbsPath" | grep -iq "Node is not staked"; then
echo "⚠️ WARNING: The node is not staked. Have you read the instructions to get onboarded? Find it here https://docs.fleek.network/docs/node/testnet-onboarding"
echo

((warningCount++))
((healthIssueCount++))
elif tail -n 5 "$defaultLightningOutputLogAbsPath" | grep -iq "Please update your node"; then
elif tail -n 500 "$defaultLightningOutputLogAbsPath" | grep -iq "Please update your node"; then
echo "⚠️ WARNING: Binary process version mismatch, you have to update your node. A quick reference is available in https://docs.fleek.network/references/Lightning%20CLI/update-cli-from-source-code/"
echo

Expand Down

0 comments on commit 7a6c230

Please sign in to comment.