Commit 1d7900b0 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove recursive commands from bin/install

It is not clear what we need these for anymore. Because these commands
would recurse once through all existing files in all Git repositories,
and then another time through all directories these commands could
take very long on a server with a lot of repositories.

We keep the 'chmod' on config.repos_path, to deny world access to all
files and directories beneath it.
parent c2b324a9
v2.5.4
- Remove recursive commands from bin/install
v2.5.3 v2.5.3
- Improve git-annex integration - Improve git-annex integration
......
...@@ -15,8 +15,7 @@ commands = [ ...@@ -15,8 +15,7 @@ commands = [
%W(chmod 700 #{key_dir}), %W(chmod 700 #{key_dir}),
%W(touch #{config.auth_file}), %W(touch #{config.auth_file}),
%W(chmod 600 #{config.auth_file}), %W(chmod 600 #{config.auth_file}),
%W(chmod -R ug+rwX,o-rwx #{config.repos_path}), %W(chmod ug+rwX,o-rwx #{config.repos_path}),
%W(find #{config.repos_path} -type d -exec chmod g+s {} ;)
] ]
commands.each do |cmd| commands.each do |cmd|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment