summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
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)