exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit f3e67ba34312909ca5600ead77b3eb5a58b40620
parent ce3c5a1d2e8251cdcc3a5e3bb1ce8a7d85febcc3
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun, 27 Jul 2025 14:46:38 +0200

fix compressed SPA postinstall

Diffstat:
Mdebian/control | 2++
Mdebian/taler-auditor.postinst | 4++--
Mdebian/taler-exchange.postinst | 8++++----
3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control @@ -82,6 +82,7 @@ Depends: adduser, lsb-base, netbase, + zstd, ucf, ${misc:Depends}, ${shlibs:Depends} @@ -136,6 +137,7 @@ Depends: libtalerexchange (= ${binary:Version}), taler-exchange-database (= ${binary:Version}), adduser, + zstd, lsb-base, netbase, ${misc:Depends}, diff --git a/debian/taler-auditor.postinst b/debian/taler-auditor.postinst @@ -33,8 +33,8 @@ configure) for n in index.css index.js index.html do TDIR="/usr/share/taler-auditor/" - gzip --best - < "${TDIR}/spa/$n" > "${TDIR}/spa/$n.gz" || true - zstd -19 - < "${TDIR}/spa/$n" > "${TDIR}/spa/$n.zstd" || true + gzip --best - < "${TDIR}/spa/$n" > "${TDIR}/spa/$n.gz" || rm -f "${TDIR}/spa/$n.gz" + zstd -19 - < "${TDIR}/spa/$n" > "${TDIR}/spa/$n.zstd" || rm -f "${TDIR}/spa/$n.zstd" done ;; diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst @@ -99,10 +99,10 @@ configure) for n in forms.json index.css index.js index.html do TDIR="/usr/share/taler-exchange/" - gzip --best - < "${TDIR}/aml-spa/$n" > "${TDIR}/aml-spa/$n.gz" || true - gzip --best - < "${TDIR}/kyc-spa/$n" > "${TDIR}/kyc-spa/$n.gz" || true - zstd -19 - < "${TDIR}/aml-spa/$n" > "${TDIR}/aml-spa/$n.zstd" || true - zstd -19 - < "${TDIR}/kyc-spa/$n" > "${TDIR}/kyc-spa/$n.zstd" || true + gzip --best - < "${TDIR}/aml-spa/$n" > "${TDIR}/aml-spa/$n.gz" || rm -f ${TDIR}/aml-spa/$n.gz" + gzip --best - < "${TDIR}/kyc-spa/$n" > "${TDIR}/kyc-spa/$n.gz" || rm -f ${TDIR}/kyc-spa/$n.gz" + zstd -19 - < "${TDIR}/aml-spa/$n" > "${TDIR}/aml-spa/$n.zstd" || rm -f "${TDIR}/aml-spa/$n.zstd" + zstd -19 - < "${TDIR}/kyc-spa/$n" > "${TDIR}/kyc-spa/$n.zstd" || rm -f "${TDIR}/kyc-spa/$n.zstd" done ;;