Skip to content

Commit

Permalink
fix tag file when downloading block_log-latest file
Browse files Browse the repository at this point in the history
  • Loading branch information
ety001 committed Dec 20, 2021
1 parent d4957e3 commit 7cbeff3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/startpaassteemd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,15 @@ if [[ $finished == 0 ]]; then
else
mkdir blockchain
fi

# add a tag file to help check if download process has been done.
echo "[info] create downloading tag file."
touch /tmp/isdownloading
aws s3 cp s3://$S3_BUCKET/block_log-latest blockchain/block_log
# remove download file tag
rm /tmp/isdownloading
echo "[info] remove /tmp/isdownloading."

if [[ $? -ne 0 ]]; then
echo notifysteemdsync steemdsync: unable to pull latest block_log from S3, will sync from scratch.
else
Expand Down

0 comments on commit 7cbeff3

Please sign in to comment.