mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
@@ -489,15 +489,21 @@ if [ "$1" = "install" ]; then
|
|||||||
echo "# Download the NBXplorer source code $NBXplorerVersion"
|
echo "# Download the NBXplorer source code $NBXplorerVersion"
|
||||||
sudo -u btcpay git clone https://github.com/dgarage/NBXplorer.git
|
sudo -u btcpay git clone https://github.com/dgarage/NBXplorer.git
|
||||||
if [ ! -d "/home/btcpay/NBXplorer" ]; then
|
if [ ! -d "/home/btcpay/NBXplorer" ]; then
|
||||||
echo "# FAIL! on first git clone - retrying with SSH."
|
echo "# FAIL! on first git clone - retrying with snapshot download."
|
||||||
sudo -u btcpay git clone git@github.com:dgarage/NBXplorer.git
|
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
|
if [ ! -d "/home/btcpay/NBXplorer" ]; then
|
||||||
echo "# FAIL! also on second git clone of NBXplorer - exiting."
|
echo "# FAIL! also on second git clone of NBXplorer - uninstall & exiting."
|
||||||
|
/home/admin/config.scripts/bonus.btcpayserver.sh uninstall
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
cd NBXplorer
|
||||||
|
else
|
||||||
|
echo "# OK - git clone of NBXplorer successful."
|
||||||
|
cd NBXplorer
|
||||||
|
sudo -u btcpay git reset --hard $NBXplorerVersion
|
||||||
fi
|
fi
|
||||||
cd NBXplorer
|
|
||||||
sudo -u btcpay git reset --hard $NBXplorerVersion
|
|
||||||
# PGP verify
|
# PGP verify
|
||||||
NBXPGPsigner="nicolasdorier"
|
NBXPGPsigner="nicolasdorier"
|
||||||
NBXPGPpubkeyLink="https://keybase.io/nicolasdorier/pgp_keys.asc"
|
NBXPGPpubkeyLink="https://keybase.io/nicolasdorier/pgp_keys.asc"
|
||||||
@@ -523,7 +529,6 @@ if [ "$1" = "install" ]; then
|
|||||||
# from the build.sh with path
|
# from the build.sh with path
|
||||||
sudo -u btcpay /home/btcpay/dotnet/dotnet build -c Release \
|
sudo -u btcpay /home/btcpay/dotnet/dotnet build -c Release \
|
||||||
/home/btcpay/btcpayserver/BTCPayServer/BTCPayServer.csproj || exit 1
|
/home/btcpay/btcpayserver/BTCPayServer/BTCPayServer.csproj || exit 1
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user