Fix exporter creating empty archives

This commit is contained in:
Karina Kwiatek 2022-12-04 22:31:20 +01:00 committed by Andreas Nedbal
parent cb61db02eb
commit 5b29c78496
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class Exporter
end end
def publish def publish
`tar czvf #{Rails.root.join "public", "export", "#{@export_filename}.tar.gz"} -C /tmp/rs_export #{@export_dirname}` `tar czvf #{Rails.root.join "public", "export", "#{@export_filename}.tar.gz"} #{@export_dirname}`
url = "#{APP_CONFIG['https'] ? 'https' : 'http'}://#{APP_CONFIG['hostname']}/export/#{@export_filename}.tar.gz" url = "#{APP_CONFIG['https'] ? 'https' : 'http'}://#{APP_CONFIG['hostname']}/export/#{@export_filename}.tar.gz"
@user.export_processing = false @user.export_processing = false
@user.export_url = url @user.export_url = url