-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read download/incomplete directory paths from settings.json
#277
base: master
Are you sure you want to change the base?
read download/incomplete directory paths from settings.json
#277
Conversation
- prevents automatic creation of unused directories - if `settings.json` contains `download-dir`/`incomplete-dir` properties, read the values and use them for `mkdir`/`lsiown` commands on container start
I am a bot, here are the test results for this PR:
|
3c61175
to
a96e3bc
Compare
I am a bot, here are the test results for this PR:
|
lgtm |
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs changelog entry and testing
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
Description:
This PR replaces hardcoded paths for directory creation/ownership with paths parsed from
settings.json
. If paths cannot be found in the file, defaults are used.For standard installations, this change has no effect. In the case that a user sets a custom path for
download-dir
and/orincomplete-dir
insettings.json
, the run script willmkdir
/lsiown
the custom directories instead of the defaults.Benefits of this PR and context:
Currently, even if a user changes the path(s) of
download-dir
/incomplete-dir
insettings.json
, the run script will stillmkdir
/lsiown
the default directories (/downloads/complete
&/downloads/incomplete
) every time the container starts. Although these unused directories don't pose any serious issue, they can be a nuisance when navigating with autocomplete in the command line.How Has This Been Tested?
Ran jenkins-builder.
Source / References:
#265
#256
#266