linuxserver / docker-transmission

GNU General Public License v3.0
595 stars 185 forks source link

Add option to run script torrent done filename when torrent is completed #160

Closed shudack closed 3 years ago

shudack commented 3 years ago

linuxserver.io


Desired Behavior

Could you please add a ENV to script-torrent-done-enabled and script-torrent-done-filename to run script when torrent is completed? The script it will unrar or unzip the torrent downloaded.

Current Behavior

I can't write in settings.json because is overwritten when the container is started

Alternatives Considered

Add a ENV:

github-actions[bot] commented 3 years ago

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

j0nnymoe commented 3 years ago

If the settings.json is getting overwritten, you're apply the wrong permissions to that file that is causing the container to do it. https://github.com/linuxserver/docker-transmission/blob/262dfc17042ea14ae2618b8a5a9f6a3a67224ef7/root/etc/cont-init.d/20-config#L8

shudack commented 3 years ago

If the settings.json is getting overwritten, you're apply the wrong permissions to that file that is causing the container to do it. https://github.com/linuxserver/docker-transmission/blob/262dfc17042ea14ae2618b8a5a9f6a3a67224ef7/root/etc/cont-init.d/20-config#L8

Opsss.. I stopped the container, changed the settings.json, started the container again, and the values is not overridden.

Thanks @j0nnymoe !