From c780d36ddc0f5bdb2fda3ae189e7cea650e88356 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 28 May 2019 12:39:39 +1000 Subject: [PATCH] DEV: Correct posts:recover_uploads_from_index Was creating a blank index file by mistake --- lib/tasks/posts.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index 84021533177..34e637f9ad5 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -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)