mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:34:16 +08:00
FIX: delete PostgreSQL dump before gzipping archive (#4323)
This commit is contained in:
parent
f369d492b3
commit
166d753bd3
|
@ -257,6 +257,8 @@ module BackupRestore
|
|||
end
|
||||
end
|
||||
|
||||
remove_tmp_directory
|
||||
|
||||
log "Gzipping archive, this may take a while..."
|
||||
`gzip -5 #{tar_filename}`
|
||||
end
|
||||
|
@ -284,7 +286,6 @@ module BackupRestore
|
|||
def clean_up
|
||||
log "Cleaning stuff up..."
|
||||
remove_tar_leftovers
|
||||
remove_tmp_directory
|
||||
unpause_sidekiq
|
||||
disable_readonly_mode if Discourse.readonly_mode?
|
||||
mark_backup_as_not_running
|
||||
|
|
Loading…
Reference in New Issue
Block a user