Skip to content

Instantly share code, notes, and snippets.

@Netherdrake
Created September 26, 2017 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Netherdrake/e13746b06e35f483958a12367760a741 to your computer and use it in GitHub Desktop.
Save Netherdrake/e13746b06e35f483958a12367760a741 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ -f /witness_node_data_dir/.default_dir ]]; then
echo "WARN: Volumes are not configured." 1>&2
fi
if [[ ! -f /witness_node_data_dir/config.ini ]]; then
echo "WARN: Missing steemd config."
fi
if [[ ! -d /witness_node_data_dir/blockchain ]]; then
echo "Downloading the blockchain..."
mkdir -p /witness_node_data_dir/blockchain
wget -O "/witness_node_data_dir/blockchain/block_log" https://gtg.steem.house/get/blockchain/block_log
fi
${STEEMD_EXEC} ${STEEMD_ARGS} $*
if [[ $? -ne 0 ]]; then
echo "FAIL: Exited with errors" 1>&2
exit 1
else
echo "INFO: Exited normally"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment