Skip to content

Commit

Permalink
Update storj-system-health.sh
Browse files Browse the repository at this point in the history
* added a verbose message to make transparent, that in the case of "pending audits, running the script in 5m automatically again".
  • Loading branch information
bjoerrrn authored May 27, 2024
1 parent fdcab85 commit abdc1ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storj-system-health.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# v1.10.12
# v1.10.13
#
# storj-system-health.sh - storagenode health checks and notifications to discord / by email
# by dusselmann, https://github.com/dusselmann/storj-system-health.sh
Expand Down Expand Up @@ -1211,6 +1211,7 @@ fi
# if there are pending audits, run the script for the specific node a second time after 5 mins
if [[ $audit_difference -gt 0 ]] && [[ "$audit_difference_repeat" == "true" ]]; then
i=$((i-1)) # repeat the loop with current i value
[[ "$VERBOSE" == "true" ]] && echo " *** due to pending audits, running the script in 5m automatically again."
sleep 5m # sleep for 5mins to allow audits to be finalized
fi

Expand Down

0 comments on commit abdc1ca

Please sign in to comment.