Follow symlinks

In particular, the Omnibus uploads directory is generally a symlink.
This commit is contained in:
Michael Kozono 2017-12-04 12:57:44 -08:00
parent ca81781680
commit fcbd2fe625
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ module Gitlab
end
def build_find_command(search_dir)
cmd = %W[find #{search_dir}
cmd = %W[find -L #{search_dir}
-type f
! ( -path #{EXCLUDED_HASHED_UPLOADS_PATH} -prune )
! ( -path #{EXCLUDED_TMP_UPLOADS_PATH} -prune )