summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/thandy/ServerCLI.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/thandy/ServerCLI.py b/lib/thandy/ServerCLI.py
index 192837c..5e2c424 100644
--- a/lib/thandy/ServerCLI.py
+++ b/lib/thandy/ServerCLI.py
@@ -103,6 +103,7 @@ def insert(args):
os.makedirs(parentDir, 0755)
print " Replacing file..."
thandy.util.replaceFile(targetPath, content)
+ os.chmod(targetPath, 0644)
print " Done."
n_ok += 1
if n_ok != len(args):
@@ -171,6 +172,7 @@ def timestamp(args):
content = json.dumps(signable, sort_keys=True)
thandy.util.replaceFile(tsFname, content)
+ os.chmod(tsFname, 0644)
def usage():
print "Known commands:"