summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-04-26 10:22:27 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-04-26 10:22:27 +0200
commit50024b52e668e5b976bd2bbadad285c14e7fa636 (patch)
treec2eb70329e55ac6b84aad4950d351c35fac15a5c /config
parent5d14989807c522141e6fc34e0d6be3b74a1c1d05 (diff)
downloaddeployment-50024b52e668e5b976bd2bbadad285c14e7fa636.tar.gz
deployment-50024b52e668e5b976bd2bbadad285c14e7fa636.tar.bz2
deployment-50024b52e668e5b976bd2bbadad285c14e7fa636.zip
file permissions.
wireformats files get their permissions upon creation.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/generate-config5
1 files changed, 4 insertions, 1 deletions
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)