gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-deployment] branch master updated: file permissions.


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] branch master updated: file permissions.
Date: Thu, 26 Apr 2018 10:23:14 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 50024b5  file permissions.
50024b5 is described below

commit 50024b52e668e5b976bd2bbadad285c14e7fa636
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Apr 26 10:22:27 2018 +0200

    file permissions.
    
    wireformats files get their permissions upon
    creation.
---
 bin/taler-deployment-config-sign | 8 +-------
 config/generate-config           | 5 ++++-
 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)
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]