Bug fixes for verify

This commit is contained in:
Taylor Helsper 2019-10-15 22:19:02 -05:00
parent 30476d1e2c
commit 012c9a1dd3
2 changed files with 5 additions and 4 deletions

View File

@ -57,8 +57,8 @@ if [ "$CURRENT" != "$BTC_UPGRADE_URL" ]; then
gpg --verify SHA256SUMS.asc
if [ $? == 0 ]; then
# Install Bitcoin
tar -xvf bitcoin-*.tar.gz
mv bitcoin-* bitcoin
tar -xvf bitcoin-$BTC_VERSION-$ARCH.tar.gz
mv bitcoin-$BTC_VERSION bitcoin
install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/*
# Mark current version

View File

@ -174,8 +174,9 @@ if [ "$CURRENT" != "$BTC_UPGRADE_URL" ]; then
sha256sum --ignore-missing --check SHA256SUMS.asc
gpg --verify SHA256SUMS.asc
tar -xvf bitcoin-*.tar.gz
mv bitcoin-* bitcoin
# Install Bitcoin
tar -xvf bitcoin-$BTC_VERSION-$ARCH.tar.gz
mv bitcoin-$BTC_VERSION bitcoin
install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/*
if [ ! -L /home/bitcoin/.bitcoin ]; then
sudo -u bitcoin ln -s /mnt/hdd/mynode/bitcoin /home/bitcoin/.bitcoin