mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 15:52:45 +08:00
FIX: BackupRestore::Backuper#remove_tar_leftovers
not cleaning up files.
Wildcard is sanitized when passed to `system()`.
This commit is contained in:
parent
9cc7df13a4
commit
0af159546a
|
@ -30,7 +30,7 @@ module BackupRestore
|
|||
enable_readonly_mode
|
||||
|
||||
pause_sidekiq
|
||||
wait_for_sidekiq
|
||||
wait_for_sidekiqz
|
||||
|
||||
dump_public_schema
|
||||
|
||||
|
@ -281,7 +281,7 @@ module BackupRestore
|
|||
|
||||
def remove_tar_leftovers
|
||||
log "Removing '.tar' leftovers..."
|
||||
system('rm', '-f', "#{@archive_directory}/*.tar")
|
||||
Dir["#{@archive_directory}/*.tar"].each { |filename| File.delete(filename) }
|
||||
end
|
||||
|
||||
def remove_tmp_directory
|
||||
|
|
Loading…
Reference in New Issue
Block a user