diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/resilient/__init__.py | 7 |
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 |