Files
lnd.xprv/scripts/install_bitcoind.sh
T

18 lines
552 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ev
2019-05-21 22:58:50 -07:00
2019-05-23 17:39:37 -07:00
export BITCOIND_VERSION=0.18.0
2019-05-21 22:58:50 -07:00
if sudo cp ~/bitcoin/bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind
then
echo "found cached bitcoind"
2019-05-21 22:58:50 -07:00
else
mkdir -p ~/bitcoin && \
pushd ~/bitcoin && \
wget https://bitcoin.org/bin/bitcoin-core-$BITCOIND_VERSION/bitcoin-$BITCOIND_VERSION-x86_64-linux-gnu.tar.gz && \
tar xvfz bitcoin-$BITCOIND_VERSION-x86_64-linux-gnu.tar.gz && \
sudo cp ./bitcoin-$BITCOIND_VERSION/bin/bitcoind /usr/local/bin/bitcoind && \
popd
2019-05-21 22:58:50 -07:00
fi