Commit fcbd2fe6 authored by Michael Kozono's avatar Michael Kozono

Follow symlinks

In particular, the Omnibus uploads directory is generally a symlink.
parent ca817816
...@@ -92,7 +92,7 @@ module Gitlab ...@@ -92,7 +92,7 @@ module Gitlab
end end
def build_find_command(search_dir) def build_find_command(search_dir)
cmd = %W[find #{search_dir} cmd = %W[find -L #{search_dir}
-type f -type f
! ( -path #{EXCLUDED_HASHED_UPLOADS_PATH} -prune ) ! ( -path #{EXCLUDED_HASHED_UPLOADS_PATH} -prune )
! ( -path #{EXCLUDED_TMP_UPLOADS_PATH} -prune ) ! ( -path #{EXCLUDED_TMP_UPLOADS_PATH} -prune )
......
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