mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Revert "Merge branch 'master' of https://github.com/discourse/discourse"
This reverts commite62a85cf6f
, reversing changes made to2660c2e21d
.
This commit is contained in:
parent
e62a85cf6f
commit
20780a1eee
236 changed files with 717 additions and 1033 deletions
|
@ -65,10 +65,9 @@ module BackupRestore
|
|||
return if !@is_archive
|
||||
|
||||
log "Unzipping archive, this may take a while..."
|
||||
Discourse::Utils.execute_command(
|
||||
'tar', '--extract', '--gzip', '--file', @archive_path, '--directory', @tmp_directory,
|
||||
failure_message: "Failed to decompress archive."
|
||||
)
|
||||
pipeline = Compression::Pipeline.new([Compression::Tar.new, Compression::Gzip.new])
|
||||
unzipped_path = pipeline.decompress(@tmp_directory, @archive_path, available_size)
|
||||
pipeline.strip_directory(unzipped_path, @tmp_directory)
|
||||
end
|
||||
|
||||
def extract_db_dump
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue