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

# Get the exchange wire details signed.
# Running this command again will produce different
# signatures, as it generates a salt upon each invocation.
#
#


set -eu
base=$HOME
export PATH="$base/deployment":$PATH

for f in $HOME/shared-data/exchange/wire/*.json
  # If this command is run by the blue-green party
  # that did NOT create the .json file(s) then the
  # right group permission is already set (and the
  # 'chmod' below would also fail).
  do chmod g+w $f || true
done

# Sign wire details.
taler-exchange-wire