From f69c7dc7bbd00c29b138b56451cd60d6c94d8249 Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Wed, 17 Jul 2024 22:24:12 +0200 Subject: [PATCH] Update btcpayserver to 1.13.5 Also allows `btcpayserver-system-{variant}` to access the database of `nbxplorer-{variant}` so that it can show charts. --- build_rules/btcpayserver.pin | 2 +- pkg_specs/btcpayserver-system-@variant.sps | 8 +++++++- pkg_specs/btcpayserver.changelog | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/build_rules/btcpayserver.pin b/build_rules/btcpayserver.pin index d1ced13..c97ed43 100644 --- a/build_rules/btcpayserver.pin +++ b/build_rules/btcpayserver.pin @@ -1 +1 @@ -b2480ad0812798709b34a9c8f0e2f87b9dba5a16 +30d91d0bd1a751f8d8a617f5c13ad5bb424f52c8 diff --git a/pkg_specs/btcpayserver-system-@variant.sps b/pkg_specs/btcpayserver-system-@variant.sps index 1cfab43..fd7d7e4 100644 --- a/pkg_specs/btcpayserver-system-@variant.sps +++ b/pkg_specs/btcpayserver-system-@variant.sps @@ -3,7 +3,7 @@ bin_package = "btcpayserver" binary = "/usr/bin/btcpayserver" conf_param = "--conf=" user = { group = true, create = { home = true } } -depends = ["bitcoin-{variant}"] +depends = ["bitcoin-{variant}", "nbxplorer-{variant} (>= 2.4.5-1)"] conflicts = ["btcpayserver-system-selfhost-{variant}"] # The former two of these recommends handle the situation when lnd is installed on the command line # without explicitly selecting the network or when the selected network is mainnet only, the latter @@ -79,6 +79,12 @@ template = "{nbxplorer-@variant/datadir}/{nbxplorer_network}/.cookie" type = "path" template = "/var/log/btcpayserver-system-{variant}/debug.log" +[config."btcpayserver.conf".hvars."explorer.postgres"] +type = "string" +script = """ +sed 's/^postgres=//' /etc/nbxplorer-{variant}/database +""" + [config."conf.d/root_path.conf"] format = "plain" diff --git a/pkg_specs/btcpayserver.changelog b/pkg_specs/btcpayserver.changelog index a9a02c2..7ab2363 100644 --- a/pkg_specs/btcpayserver.changelog +++ b/pkg_specs/btcpayserver.changelog @@ -1,3 +1,9 @@ +btcpayserver (1.13.5-1) buster; urgency=medium + + * Updated upstream version + * Allow btcpayserver to access nbxplorer database directly + + -- Martin Habovstiak Fri, 19 Jul 2024 10:55:56 +0000 btcpayserver (1.13.4-2) buster; urgency=medium * Fixed database handling