summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-keyup
blob: d0698d61f112d8bccee792636af9869b39a9e5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

set -eu

auditor_request = ${HOME}/shared-data/exchange/auditor-request/auditor_request
if [[ ${TALER_CONFIG_STANDALONE:-0} = 1 ]]; then
  # no auditor on env deployments for now
  taler-exchange-keyup \
    -m ~/shared-data/exchange/offline-keys/master.priv
else
  taler-exchange-keyup \
    -m ~/shared-data/exchange/offline-keys/master.priv \
    -o $auditor_request
fi

auditor_base_dir = $(taler-config -s exchangedb -o auditor_base_dir)
taler-auditor-sign -u https://auditor.taler.net/ -m $(taler-config -s exchange -o master_public_key) -r $auditor_request -o "$auditor_base_dir/auditor_sig"
if [[ 0 != $? ]]; then
  echo Auditor signing not accomplished.

chmod -fR g+rw ~/shared-data