From baa98369492c9884af13fdd76582a3c6361e12cf Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 29 May 2019 07:01:21 +0100 Subject: [PATCH] Merge branch 'kccheung-lnd-update-patch-1' --- lnd.update.v0.6.1-beta.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lnd.update.v0.6.1-beta.sh b/lnd.update.v0.6.1-beta.sh index 8ff319e..4428d09 100644 --- a/lnd.update.v0.6.1-beta.sh +++ b/lnd.update.v0.6.1-beta.sh @@ -7,7 +7,7 @@ ## see LND releases: https://github.com/lightningnetwork/lnd/releases lndVersion="0.6.1-beta" # the version you would like to be updated -home="/mnt/hdd/download" # edit your download directory +downloadDir="/home/admin/download" # edit your download directory echo "Detect CPU architecture ..." isARM=$(uname -m | grep -c 'arm') @@ -51,12 +51,12 @@ PGPcheck="BD599672C804AF2770869A048B80CD2BB8BD8132" #PGPcheck="9C8D61868A7C492003B2744EE7D737B67FA592C7" # get LND resources -cd "${home}" +cd "${downloadDir}" binaryName="lnd-linux-${lndOSversion}-v${lndVersion}.tar.gz" sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/${binaryName} sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt.sig -sudo -u admin wget -N -O "${home}/pgp_keys.asc" ${PGPpkeys} +sudo -u admin wget -N -O "${downloadDir}/pgp_keys.asc" ${PGPpkeys} # check binary is was not manipulated (checksum test) binaryChecksum=$(sha256sum ${binaryName} | cut -d " " -f1) @@ -67,7 +67,7 @@ fi # check gpg finger print gpg ./pgp_keys.asc -fingerprint=$(sudo gpg "${home}/pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c) +fingerprint=$(sudo gpg "${downloadDir}/pgp_keys.asc" 2>/dev/null | grep "${PGPcheck}" -c) if [ ${fingerprint} -lt 1 ]; then echo "" echo "!!! BUILD WARNING --> LND PGP author not as expected" @@ -104,4 +104,4 @@ fi sudo systemctl restart lnd echo "" -echo "Installed ${installed}" +echo "Installed ${installed}" \ No newline at end of file