btcpayserver/update.sh: auto-update nbxplorer

It's now sufficient to run a single script (btcpayserver/update.sh) to
update btcpayserver. This simplifies maintenance.
nbxplorer is a strict dependency of btcpayserver.
This commit is contained in:
Erik Arvstedt 2021-05-04 15:04:36 +02:00
parent 074b608d01
commit 60c6153ab1
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 7 additions and 2 deletions

View File

@ -2,5 +2,10 @@
set -euo pipefail
scriptDir=$(cd "${BASH_SOURCE[0]%/*}" && pwd)
cd "$scriptDir"
"$scriptDir"/../nbxplorer/util/update-common.sh btcpayserver "$scriptDir"/deps.nix
echo "Updating nbxplorer"
../nbxplorer/update.sh
echo
echo "Updating btcpayserver"
../nbxplorer/util/update-common.sh btcpayserver deps.nix

View File

@ -6,7 +6,7 @@ set -euo pipefail
# Expects $pkgSrc to contain a single .sln file.
pkgSrc=$1
depsFile=$2
depsFile=$(realpath "$2")
sln=$(cd "$pkgSrc"; find * -maxdepth 0 -name '*.sln' | head -1)
[[ $sln ]] || { echo "No .sln file in $pkgSrc" ; exit 1; }