-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Transmission home mountpoint set to /config #1974
Conversation
5590024
to
42da954
Compare
42da954
to
80d2ca4
Compare
TRANSMISSION_HOME_SUBNAME=${TRANSMISSION_HOME##*/} | ||
echo "Attempting to migrate old TRANSMISSION_HOME from /data/$TRANSMISSION_HOME_SUBNAME to /config/$TRANSMISSION_HOME_SUBNAME " | ||
if [ -d "/data/$TRANSMISSION_HOME_SUBNAME" ] && [ ! -d "/config/$TRANSMISSION_HOME_SUBNAME" ]; then | ||
mv "/data/$TRANSMISSION_HOME_SUBNAME" "/config/$TRANSMISSION_HOME_SUBNAME" |
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.
I think many people have not mounted /config. So doing a mv
will possibly move the home folder to a non-mounted file system within the container and it would be gone when the container is re-created.
I know that's not 100% true because we specify VOLUME /config
in the Dockerfile, but... For a new Docker-user it's probably tricky to re-locate their transmission-home inside a volume.
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.
Right now, if user has not set TRANSMISSION_HOME_MIGRATE then only the warning is shown..
While it makes more sense to keep it under /config… I’m not against a user saying they don’t want that etc..
this would mainly affect new installs and optionally the user can let the system migrate it for them..
Perhaps add another check to see if the user has mounted /config or not?
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.
Ah, sorry. I was a bit quick there, hadn't read it properly it seems 🙈
EDIT: And then I did it again, not reading all the code. I'm signing off for now, but the gist of what I was trying to communicate is...
If we change the default TRANSMISSION_HOME value in our Dockerfile I think most users will come to a blank Transmission state after they re-create the image next time (it will still be in /data though). The NAS gang usually has TRANSMISSION_HOME set because they get all the env vars in their GUI, but I would expect most of the rest to not have the env var set and just rely on the default.
If I'm not mistaken about the fallout here, then that's a bit too much breakage IMO. So I think we have to look for /data/transmission-home and then use that if it exists and log that they are using a non-default setup.
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.
Ah, yes, I ate and I’ll fix a fallback after the little one has been dropped off at dagis ;)
I agree that this data should live under /config. But we need to make the transition a bit smoother I think. Ref my comment on the I'm more comfortable with a hard error telling the user to mount /config than moving user data without the user knowing. Should we do 5.0 release and then just hard-error telling people to revert to 4.x or fix their mounts? I'm not sure here. |
We wouldn’t be moving anything without the user explicitly saying so.. and I’m not sure I agree on the hard stop. In the end it should be up to the user how they want to set it up etc, but our recommended setup has a mount for /config in user land moving forward, as it makes more sense to keep config there.. but I don’t see any problems or such of the user wants to keep the current setup |
Breaking change
Proposed change
Type of change
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: