Fix #4817 BTCPay Server install (2) (#4825)

* #4817 add fallback
This commit is contained in:
/rootzoll 2024-10-28 16:00:04 +01:00 committed by GitHub
parent 7c91ee99a7
commit a64e31f725
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -488,6 +488,14 @@ if [ "$1" = "install" ]; then
cd /home/btcpay || exit 1
echo "# Download the NBXplorer source code $NBXplorerVersion"
sudo -u btcpay git clone https://github.com/dgarage/NBXplorer.git
if [ ! -d "/home/btcpay/NBXplorer" ]; then
echo "# FAIL! on first git clone - retrying with SSH."
sudo -u btcpay git clone git@github.com:dgarage/NBXplorer.git
if [ ! -d "/home/btcpay/NBXplorer" ]; then
echo "# FAIL! also on second git clone of NBXplorer - exiting."
exit 1
fi
fi
cd NBXplorer
sudo -u btcpay git reset --hard $NBXplorerVersion
# PGP verify