added blockchain download and extract

This commit is contained in:
J62 2018-04-13 08:46:39 -07:00 committed by GitHub
parent 242ec17e9a
commit 0fbeb40ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -46,12 +46,26 @@ git clone -b explorer-btcp https://github.com/BTCPrivate/BitcoinPrivate
# Build Bitcoin Private
./BitcoinPrivate/btcputil/build.sh -j$(nproc)
#Make
if [ ! -e ~/.btcprivate/ ]
then
echo "does not exist, creating folder"
mkdir ~/.btcprivate
fi
echo "folder does exist..copying files"
wget https://storage.googleapis.com/btcp-blockchain/BTCprivate.7z
sudo apt install p7zip-full
7z x BTCprivate.7z
# Make initial, empty btcprivate.conf if needed
if [ ! -e ~/.btcprivate/btcprivate.conf ]
then
touch ~/.btcprivate/btcprivate.conf
fi
}
install_nvm_npm() {
@ -159,11 +173,11 @@ case "$response" in
esac
install_nvm_npm
##install_nvm_npm
#install_mongodb
install_bitcore
##install_bitcore
echo "Complete."
echo ""