summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorKarl Semich <0xloem@gmail.com>2016-06-25 06:59:20 -0400
committerKarl Semich <0xloem@gmail.com>2016-06-25 06:59:20 -0400
commit96563c8022366a85196a91207ff7a25617c9a7b5 (patch)
treeedcaf47cefdfda0efc8a17cab39c6ecfc7dfd974 /backend
parent1bb0b4fb9cbe726403c3a366d0324af5969226d2 (diff)
downloadstandingwithresilience-96563c8022366a85196a91207ff7a25617c9a7b5.tar.gz
standingwithresilience-96563c8022366a85196a91207ff7a25617c9a7b5.zip
fix for auth permissions
Diffstat (limited to 'backend')
-rw-r--r--backend/resilient/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py
index 4c89074..21f2d85 100644
--- a/backend/resilient/__init__.py
+++ b/backend/resilient/__init__.py
@@ -17,9 +17,14 @@ html_path = os.path.normpath(os.path.join(backend_path, '../html'))
wiki_src_path = os.path.normpath(os.path.join(backend_path, '../wiki'))
git_path = os.path.normpath(os.path.join(backend_path, '../.git'))
-
ssh_config_path = os.path.join(auth_path, "ssh-config")
+for auth_subpath, auth_subpaths, auth_subfiles in os.walk(auth_path):
+ for auth_subfile in auth_subfiles:
+ auth_subfile = os.path.join(auth_subpath, auth_subfile)
+ if os.path.isfile(auth_subfile):
+ os.chmod(auth_subfile, 0600)
+
def url200(url):
try:
return urllib.urlopen(url).getcode() == 200