From 5b29c78496be7bfa778348158c3bf53401e4bbe7 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 4 Dec 2022 22:31:20 +0100 Subject: [PATCH] Fix exporter creating empty archives --- lib/exporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exporter.rb b/lib/exporter.rb index e64b5558..8ee43e8f 100644 --- a/lib/exporter.rb +++ b/lib/exporter.rb @@ -133,7 +133,7 @@ class Exporter end 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" @user.export_processing = false @user.export_url = url