summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/taler-deployment-config-sign8
-rwxr-xr-xconfig/generate-config5
2 files changed, 5 insertions, 8 deletions
diff --git a/bin/taler-deployment-config-sign b/bin/taler-deployment-config-sign
index dcde148..ece20cd 100755
--- a/bin/taler-deployment-config-sign
+++ b/bin/taler-deployment-config-sign
@@ -6,10 +6,4 @@ base=$HOME
export PATH="$base/deployment":$PATH
-for f in ~/shared-data/exchange/wire/*.unsigned.json; do
- outf="${f%.unsigned.json}.json"
- taler-exchange-wire -j "$(<"$f")" > "$outf"
- # make sure both *-blue and *-green can write to it,
- # even when e.g. umask is messed up
- chmod g+w "$outf"
-done
+taler-exchange-wire
diff --git a/config/generate-config b/config/generate-config
index 35a853e..beb9154 100755
--- a/config/generate-config
+++ b/config/generate-config
@@ -5,6 +5,7 @@ from collections import OrderedDict
import json
import os
import urllib.parse
+import stat
sections = OrderedDict()
@@ -326,9 +327,11 @@ def main(currency, envname, outdir, shared_outdir, exchange_pub, standalone):
for name, data in exchange_wireformats:
# These files must be signed by the exchange in
# a later step
- f = open(os.path.join(d, name+".json"), "w")
+ filename = os.path.join(d, name+".json")
+ f = open(filename, "w")
f.write(data)
f.close()
+ os.chmod(filename, stat.S_IWGRP)
else:
cfg_write(sys.stdout)