mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-12 05:39:22 +02:00
backup snapshot download
This commit is contained in:
parent
6156e2d41d
commit
915522832a
@ -487,15 +487,20 @@ if [ "$1" = "install" ]; then
|
||||
echo "# Install NBXplorer $NBXplorerVersion"
|
||||
cd /home/btcpay || exit 1
|
||||
echo "# Download the NBXplorer source code $NBXplorerVersion"
|
||||
sudo -u btcpay ssh-keyscan github.com >> ~/.ssh/known_hosts
|
||||
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
|
||||
echo "# FAIL! on first git clone - retrying with snapshot download."
|
||||
sudo -u btcpay curl -L https://github.com/dgarage/NBXplorer/archive/refs/tags/$NBXplorerVersion.tar.gz -o NBXplorer.tar.gz
|
||||
sudo -u btcpay tar -xzvf NBXplorer.tar.gz
|
||||
sudo -u btcpay mv NBXplorer-* NBXplorer
|
||||
if [ ! -d "/home/btcpay/NBXplorer" ]; then
|
||||
echo "# FAIL! also on second git clone of NBXplorer - uninstall & exiting."
|
||||
/home/admin/config.scripts/bonus.btcpayserver.sh uninstall
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "# OK - git clone of NBXplorer successful."
|
||||
fi
|
||||
cd NBXplorer
|
||||
sudo -u btcpay git reset --hard $NBXplorerVersion
|
||||
|
Loading…
x
Reference in New Issue
Block a user