Created
September 26, 2017 10:47
-
-
Save Netherdrake/e13746b06e35f483958a12367760a741 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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