mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 13:20:56 +02:00
add fallback
This commit is contained in:
parent
5f59fa365c
commit
cef8b64022
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user