diff options
author | Rémy Coutable <remy@rymai.me> | 2016-05-19 20:30:34 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-05-19 20:30:34 +0300 |
commit | f780bac0ccab5a6e47964d641bdf28cd361a4b1f (patch) | |
tree | 251f093f1ceb4c8144f558dc1350e4ec84b7f1e5 /lib | |
parent | 883e2d2187a9abbfcd7b90adc3bd84edcd45db16 (diff) | |
parent | 92df8f5787de2a6ee63eb6ae47eb7155081eaa54 (diff) |
Merge branch 'patch-1' into 'master'
Fixed advice on invalid permissions on upload path
When running the checks, my upload path has wrong permissions, the advice could not fix it because it does not change the permission of this directory (only sub-directories).
```
Uploads directory setup correctly? ... no
Try fixing it:
sudo find /home/git/gitlab/public/uploads -type d -not -path /home/git/gitlab/public/uploads -exec chmod 0700 {} \;
For more information see:
doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
```
Executing this instead fixed the error :
```
sudo chmod 700 /home/git/gitlab/public/uploads
```
See merge request !2948
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/check.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index effb8eb6001..fad89c73762 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -303,7 +303,7 @@ namespace :gitlab do else puts "no".red try_fixing_it( - "sudo find #{upload_path} -type d -not -path #{upload_path} -exec chmod 0700 {} \\;" + "sudo chmod 700 #{upload_path}" ) for_more_information( see_installation_guide_section "GitLab" |