mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -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
|
end
|
||||||
|
|
||||||
def extract_uploads
|
def extract_uploads
|
||||||
if system("tar --list --file '#{@tar_filename}' 'uploads'")
|
if system('tar', '--exclude=*/*', '--list', '--file', @tar_filename, 'uploads')
|
||||||
log "Extracting uploads..."
|
log "Extracting uploads..."
|
||||||
FileUtils.cd(File.join(Rails.root, "public")) do
|
FileUtils.cd(File.join(Rails.root, "public")) do
|
||||||
execute_command(
|
execute_command(
|
||||||
|
|
Loading…
Reference in a new issue