linuxserver / docker-transmission

GNU General Public License v3.0
582 stars 180 forks source link

Removal of some environment variables #198

Closed hacketiwack closed 1 year ago

hacketiwack commented 2 years ago

linuxserver.io


Desired Behavior

The following optional environment variables are removed:

Current Behavior

Currently, there are multiple optional environment variables that can be set at the container creation time:

Defining these settings are container creation time causes the following difficulties:

Therefore, this could lead to some confusion between the settings.json configuration file and the configuration done at the container creation. The configuration made at the container creation and subsequently at every restart of the container (see 20-config) overwrite the parameters set by the user after the container start up.

Users are responsible to maintain their settings.json files.

Alternatives Considered

None.

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

aptalca commented 2 years ago

I personally have no interest in being part of a tug of war between a group of users who want everything managed via env vars and another group who want everything managed through the settings file. What we have now is a decent compromise where most of the basics can be managed via vars and the rest can be done via editing the settings file.

hacketiwack commented 2 years ago

In this case, there is an improvement that should be done in the init file 20-config in this case that would not destroy the user configuration if theses variables are set directly in the settings.json file.

elvismercado commented 2 years ago

This issue is very annoying.

I use unraid. So i add this app via the unraid app templates. I just need to be able to open the application. So I remove the USER, PASS, WHITELIST, HOST_WHITELIST and PEERPORT from the template. And create the container like that. At every restart these settings come back with defaults which break the app so it wont even start.

An example is WHITELIST=iplist is put back from the template at restart. Of course this value is not a string and the container fails to start. Doing the same via the settings.json resets these values in the settings json through the env variables.

So sinsce the last update i haven't been able to use this app anymore, which is a shame.

j0nnymoe commented 2 years ago

@elvismercado No, you're issue is actually an unraid issue, not the container environment variables. Disable the unraid template sync and this will stop happening.

elvismercado commented 2 years ago

Thank you for the suggestion. This will surely help me.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

drizuid commented 1 year ago

We have no plans to implement this change, unwanted vars can be removed from compose.