hold NBXplorer version #3055

This commit is contained in:
openoms 2022-05-10 10:01:26 +01:00
parent 1c74739a12
commit 66061e6a9b
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65

View file

@ -590,47 +590,48 @@ fi
if [ "$1" = "update" ]; then
echo "# Update NBXplorer"
cd /home/btcpay || exit 1
cd NBXplorer || exit 1
# fetch latest master
if [ "$(sudo -u btcpay git fetch 2>&1 | grep -c "Please tell me who you are")" -gt 0 ]; then
sudo -u btcpay git config user.email "you@example.com"
sudo -u btcpay git config user.name "Your Name"
fi
sudo -u btcpay git fetch
# unset $1
set --
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
TAG=$(git tag | sort -V | tail -1)
echo "# Up-to-date on version $TAG"
else
echo "# Pulling latest changes..."
sudo -u btcpay git pull -p
TAG=$(git tag | sort -V | tail -1)
echo "# Reset to the latest release tag: $TAG"
sudo -u btcpay git reset --hard $TAG
sudo -u btcpay /home/admin/config.scripts/blitz.git-verify.sh \
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
echo "# Build NBXplorer ..."
# from the build.sh with path
sudo systemctl stop nbxplorer
sudo -u btcpay /home/btcpay/dotnet/dotnet build -c Release NBXplorer/NBXplorer.csproj
# whitelist localhost in bitcoind
if ! sudo grep -Eq "^whitelist=127.0.0.1" /mnt/hdd/bitcoin/bitcoin.conf;then
echo "whitelist=127.0.0.1" | sudo tee -a /mnt/hdd/bitcoin/bitcoin.conf
echo "# Restarting bitcoind"
sudo systemctl restart bitcoind
fi
sudo systemctl start nbxplorer
echo "# Updated NBXplorer to $TAG"
fi
## don't update NBXplorer until https://github.com/rootzoll/raspiblitz/issues/3055 is solved
# echo "# Update NBXplorer"
# cd /home/btcpay || exit 1
# cd NBXplorer || exit 1
# # fetch latest master
# if [ "$(sudo -u btcpay git fetch 2>&1 | grep -c "Please tell me who you are")" -gt 0 ]; then
# sudo -u btcpay git config user.email "you@example.com"
# sudo -u btcpay git config user.name "Your Name"
# fi
# sudo -u btcpay git fetch
# # unset $1
# set --
# UPSTREAM=${1:-'@{u}'}
# LOCAL=$(git rev-parse @)
# REMOTE=$(git rev-parse "$UPSTREAM")
#
# if [ $LOCAL = $REMOTE ]; then
# TAG=$(git tag | sort -V | tail -1)
# echo "# Up-to-date on version $TAG"
# else
# echo "# Pulling latest changes..."
# sudo -u btcpay git pull -p
# TAG=$(git tag | sort -V | tail -1)
# echo "# Reset to the latest release tag: $TAG"
# sudo -u btcpay git reset --hard $TAG
# sudo -u btcpay /home/admin/config.scripts/blitz.git-verify.sh \
# "${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
# echo "# Build NBXplorer ..."
# # from the build.sh with path
# sudo systemctl stop nbxplorer
# sudo -u btcpay /home/btcpay/dotnet/dotnet build -c Release NBXplorer/NBXplorer.csproj
#
# # whitelist localhost in bitcoind
# if ! sudo grep -Eq "^whitelist=127.0.0.1" /mnt/hdd/bitcoin/bitcoin.conf;then
# echo "whitelist=127.0.0.1" | sudo tee -a /mnt/hdd/bitcoin/bitcoin.conf
# echo "# Restarting bitcoind"
# sudo systemctl restart bitcoind
# fi
#
# sudo systemctl start nbxplorer
# echo "# Updated NBXplorer to $TAG"
# fi
echo "# Update BTCPayServer"
cd /home/btcpay || exit 1