From a64e31f72590d817409684db78f9098ad2e3c06a Mon Sep 17 00:00:00 2001 From: /rootzoll Date: Mon, 28 Oct 2024 16:00:04 +0100 Subject: [PATCH] Fix #4817 BTCPay Server install (2) (#4825) * #4817 add fallback --- home.admin/config.scripts/bonus.btcpayserver.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home.admin/config.scripts/bonus.btcpayserver.sh b/home.admin/config.scripts/bonus.btcpayserver.sh index 28f00769..fcb336d2 100644 --- a/home.admin/config.scripts/bonus.btcpayserver.sh +++ b/home.admin/config.scripts/bonus.btcpayserver.sh @@ -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