Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
e6f08dab
Verified
Commit
e6f08dab
authored
11 months ago
by
Anusha Ranganathan
Committed by
Pascal Ernster
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Change default path to shared download volume
parent
4aee3234
Branches
test/2024-04-16_1
Tags
v1.0-beta3-3-ge6f08da_2024-04-16T11-30-54UTC
No related merge requests found
Pipeline
#14289
failed
11 months ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hyrax/app/helpers/download_helper.rb
+3
-3
3 additions, 3 deletions
hyrax/app/helpers/download_helper.rb
hyrax/app/helpers/search_download_helper.rb
+1
-1
1 addition, 1 deletion
hyrax/app/helpers/search_download_helper.rb
with
4 additions
and
4 deletions
hyrax/app/helpers/download_helper.rb
+
3
−
3
View file @
e6f08dab
...
...
@@ -49,15 +49,15 @@ module DownloadHelper
end
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
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
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
def
cleanup_path
(
file_path
)
...
...
This diff is collapsed.
Click to expand it.
hyrax/app/helpers/search_download_helper.rb
+
1
−
1
View file @
e6f08dab
...
...
@@ -23,7 +23,7 @@ module SearchDownloadHelper
end
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
def
shell_file_name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment