Skip to content
Snippets Groups Projects
Verified Commit e6f08dab authored by Anusha Ranganathan's avatar Anusha Ranganathan Committed by Pascal Ernster
Browse files

Change default path to shared download volume

parent 4aee3234
Branches master
No related tags found
No related merge requests found
Pipeline #14289 failed
...@@ -49,15 +49,15 @@ module DownloadHelper ...@@ -49,15 +49,15 @@ module DownloadHelper
end end
def base_download_dir def base_download_dir
File.join(ENV.fetch('DOWNLOAD_PATH', 'tmp/downloads'), work.id) File.join(ENV.fetch('DOWNLOAD_PATH', '/shared/downloads'), work.id)
end end
def zip_file_path def zip_file_path
File.join(ENV.fetch('DOWNLOAD_PATH', "tmp/downloads"), "#{work.id}.zip") File.join(ENV.fetch('DOWNLOAD_PATH', "/shared/downloads"), "#{work.id}.zip")
end end
def shell_file_path def shell_file_path
File.join(ENV.fetch('DOWNLOAD_PATH', "tmp/downloads"), "#{work.id}.sh") File.join(ENV.fetch('DOWNLOAD_PATH', "/shared/downloads"), "#{work.id}.sh")
end end
def cleanup_path(file_path) def cleanup_path(file_path)
......
...@@ -23,7 +23,7 @@ module SearchDownloadHelper ...@@ -23,7 +23,7 @@ module SearchDownloadHelper
end end
def shell_file_path def shell_file_path
@shell_file_path ||= File.join(ENV.fetch('DOWNLOAD_PATH', "tmp/downloads"), "users/#{shell_file_name}") @shell_file_path ||= File.join(ENV.fetch('DOWNLOAD_PATH', "/shared/downloads"), "users/#{shell_file_name}")
end end
def shell_file_name def shell_file_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment