From b63eda4396dc7b17554e657bc2eec0b0fda7bcb4 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 16 Nov 2008 23:35:08 +0000 Subject: chmod files on import. git-svn-id: file:///home/or/svnrepo/updater/trunk@17298 55e972cd-5a19-0410-ae62-a4d7a52db4cd --- lib/thandy/ServerCLI.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/thandy/ServerCLI.py') 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:" -- cgit v1.2.3