Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added check for livebak bitcoin directory #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .hdd/btcwatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ else
rm locblock
#check of local blockchain is way out of date, if so, restore from backup
echo "at block:"$b
if [ "$b" -lt "300000" ] && [ "$disable" != 1 ] ; then
if [ "$b" -lt "300000" ] && [ "$disable" != 1 ] && [ -d "/home/linaro/livebak/.bitcoin" ] ; then
echo "oops! blockheight less than 300K - restoring from backup"
echo "blockheight less than 300K - restore from backup" >> $HOME/cron.log
sh /home/linaro/btcstop.sh
Expand Down