(apps): update btc-rpc-explorer to version 3.4.0 (#4368)

This commit is contained in:
Christoph Stenglein 2024-01-15 19:46:02 +01:00 committed by GitHub
parent 3f3b7e429e
commit ca88646ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
# ~/.config/btc-rpc-explorer.env
# https://github.com/janoside/btc-rpc-explorer/blob/master/.env-sample
VERSION="v3.3.0"
VERSION="v3.4.0"
# command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
@ -215,10 +215,10 @@ if [ "$1" = "install" ]; then
cd btc-rpc-explorer
sudo -u btcrpcexplorer git reset --hard ${VERSION}
sudo -u btcrpcexplorer /home/admin/config.scripts/blitz.git-verify.sh "${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
sudo -u btcrpcexplorer npm install
sudo -u btcrpcexplorer npm ci
if ! [ $? -eq 0 ]; then
echo "FAIL - npm install did not run correctly, aborting"
echo "result='fail npm install'"
echo "FAIL - npm ci did not run correctly, aborting"
echo "result='fail npm ci'"
exit 1
fi
@ -377,7 +377,7 @@ EOF
echo "# needs to finish creating txindex to be functional"
echo "# monitor with: sudo tail -n 20 -f /mnt/hdd/bitcoin/debug.log"
echo "# npm audi fix"
echo "# npm audit fix"
cd /home/btcrpcexplorer/btc-rpc-explorer/
sudo npm audit fix
@ -396,7 +396,7 @@ EOF
sleep 10
fi
# needed for API/WebUI as signal that install ran thru
# needed for API/WebUI to signal successfull install
echo "result='OK'"
exit 0
fi
@ -443,7 +443,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
sudo ufw deny 3020
sudo ufw deny 3021
# needed for API/WebUI as signal that install ran thru
# needed for API/WebUI to signal successfull install
echo "result='OK'"
exit 0
fi