mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
17 lines
463 B
Bash
Executable File
17 lines
463 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ev
|
|
|
|
BITCOIND_VERSION=$1
|
|
|
|
if [ -z "$BITCOIND_VERSION" ]; then
|
|
echo "Must specify a version of bitcoind to install."
|
|
echo "Usage: install_bitcoind.sh <version>"
|
|
exit 1
|
|
fi
|
|
|
|
docker pull lightninglabs/bitcoin-core:${BITCOIND_VERSION}
|
|
CONTAINER_ID=$(docker create lightninglabs/bitcoin-core:${BITCOIND_VERSION})
|
|
sudo docker cp $CONTAINER_ID:/opt/bitcoin-${BITCOIND_VERSION}.0/bin/bitcoind /usr/local/bin/bitcoind
|
|
docker rm $CONTAINER_ID
|