mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: No need to list all the files.
This commit is contained in:
parent
e6fcaadd45
commit
8f36290c05
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ module BackupRestore
|
|||
end
|
||||
|
||||
def extract_uploads
|
||||
if system("tar --list --file '#{@tar_filename}' 'uploads'")
|
||||
if system('tar', '--exclude=*/*', '--list', '--file', @tar_filename, 'uploads')
|
||||
log "Extracting uploads..."
|
||||
FileUtils.cd(File.join(Rails.root, "public")) do
|
||||
execute_command(
|
||||
|
|
Loading…
Reference in a new issue