DEV: Correct posts:recover_uploads_from_index

Was creating a blank index file by mistake
This commit is contained in:
Sam Saffron 2019-05-28 12:39:39 +10:00
parent 3de8c58134
commit c780d36ddc
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ task 'posts:recover_uploads_from_index' => :environment do |_, args|
puts "Found existing index file at #{path}"
else
puts "Can not find index #{path} generating index this could take a while..."
`cd #{File.dirname(path)} && find -t file > #{path}`
`cd #{File.dirname(path)} && find -type f > #{path}`
end
if RailsMultisite::ConnectionManagement.current_db != "default"
recover_uploads_from_index(path)