Skip to content

Commit

Permalink
Replaced grep-based verification of hot node status with sed
Browse files Browse the repository at this point in the history
  • Loading branch information
tohsnoom committed Feb 15, 2020
1 parent aba000e commit fc9d06a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/fix_masternodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fixMasternode() {
echo "Waiting for masternode initialization"
sleep 120
echo "Waiting for hot node status..."
grep -q "activation" <(timeout 7200 tail -f debug.log)
sed '/activation/q' <(tail -n 0 -f debug.log)
echo "Masternode $1 is recovered, please start masternode from wallet."
cd
}
Expand All @@ -37,7 +37,7 @@ checkStatus() {
echo "Masternode $1 successfully started"
echo "Nothing to be done."
;;
*"Hot node, waiting for remote activation"*)
*"activation"*)
echo "Masternode $1 waiting for remote activation"
echo "Please start masternode from wallet and try again"
;;
Expand Down

0 comments on commit fc9d06a

Please sign in to comment.