commit 50024b52e668e5b976bd2bbadad285c14e7fa636
parent 5d14989807c522141e6fc34e0d6be3b74a1c1d05
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Thu, 26 Apr 2018 10:22:27 +0200
file permissions.
wireformats files get their permissions upon
creation.
Diffstat:
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git 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
@@ -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)