Created
January 19, 2020 18:04
-
-
Save ketominer/496fbabd28956e33842cb438747b2958 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 | |
cd "$(dirname "$0")" | |
### download and install lnd | |
# return values: | |
# 1 - download failed | |
# 2 - signature check failed | |
# 3 - other failure | |
# 0 - success | |
mkdir -p /opt/tmp | |
cd /opt/tmp || exit 100 | |
rm -rf * | |
wget https://github.com/lightningnetwork/lnd/releases/download/v0.7.1-beta/lnd-linux-arm64-v0.7.1-beta.tar.gz || exit | |
wget https://github.com/lightningnetwork/lnd/releases/download/v0.7.1-beta/manifest-v0.7.1-beta.txt || exit | |
wget https://github.com/lightningnetwork/lnd/releases/download/v0.7.1-beta/manifest-v0.7.1-beta.txt.sig || exit | |
gpg --import /usr/share/nodl/files/halseth-releases.asc || exit | |
gpg --import /usr/share/nodl/files/roasbeef-releases.asc || exit | |
sha256sum --check manifest-v0.7.1-beta.txt --ignore-missing || exit | |
gpg --verify manifest-v0.7.1-beta.txt.sig || exit | |
tar czf /root/lnd-before-downgrade-to-0.7.1.tgz /opt/bitcoin/.lnd/ || exit 99 | |
tar zxf lnd-linux-arm64-v0.7.1-beta.tar.gz | |
install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-arm64-v0.7.1-beta/* | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment