diff options
author | Antoine A <> | 2024-02-20 12:07:54 +0100 |
---|---|---|
committer | Antoine A <> | 2024-02-20 12:07:54 +0100 |
commit | 7d0badb1ec4390b1e165bf0843489e1f97fe8768 (patch) | |
tree | f370d8e60d018cde94db52faf2e1b21fe31b0017 | |
parent | 79a9586d41f2bfc67b6093a79e9cc7db08fa4147 (diff) | |
download | deployment-7d0badb1ec4390b1e165bf0843489e1f97fe8768.tar.gz deployment-7d0badb1ec4390b1e165bf0843489e1f97fe8768.tar.bz2 deployment-7d0badb1ec4390b1e165bf0843489e1f97fe8768.zip |
Small improvements
-rwxr-xr-x | regional-currency/functions.sh | 4 | ||||
-rwxr-xr-x | regional-currency/setup-exchange.sh | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/regional-currency/functions.sh b/regional-currency/functions.sh index abd2582..e62640f 100755 --- a/regional-currency/functions.sh +++ b/regional-currency/functions.sh @@ -124,8 +124,8 @@ function check_currency_spec() { cat << EOF > /usr/share/taler/config.d/$CURRENCY.conf [currency-$CURRENCY] ENABLED=YES -name=$CURRENCY_SPEC_NAME -code=$1 +name="$CURRENCY_SPEC_NAME" +code="$1" fractional_input_digits=2 fractional_normal_digits=2 fractional_trailing_zero_digits=2 diff --git a/regional-currency/setup-exchange.sh b/regional-currency/setup-exchange.sh index 01792b7..f6e88aa 100755 --- a/regional-currency/setup-exchange.sh +++ b/regional-currency/setup-exchange.sh @@ -59,9 +59,6 @@ function die() { # Just try if sudo works for diagnostics sudo -i -u taler-exchange-offline id >/dev/null || die "Error: Unable to switch to taler-exchange-offline user" - -chmod a+r /etc/taler/taler.conf # FIXME-CG: Debian installation should set this - # Create master key as taler-exchange-offline *unless* user already # set the MASTER_PUBLIC_KEY to some value we can use. export MASTER_PRIV_DIR=.local/share/taler/exchange/offline-keys @@ -157,7 +154,7 @@ taler-harness deployment gen-coin-config \ >/etc/taler/conf.d/"${CURRENCY}"-coins.conf # FIXME-DOLD: this belongs with taler-harness -for SEC in $(taler-config -c /etc/taler/conf.d/"${CURRENCY}"-coins.conf -S | grep COIN-); do +for SEC in $(taler-config -c /etc/taler/conf.d/"${CURRENCY}"-coins.conf -S 2>/dev/null | grep COIN-); do taler-config -c /etc/taler/conf.d/"${CURRENCY}"-coins.conf -s "$SEC" -o CIPHER -V "RSA" done |