linuxserver / docker-tvheadend

GNU General Public License v3.0
158 stars 87 forks source link

RUN_OPTS doesnt work #211

Closed gdomod closed 1 year ago

gdomod commented 1 year ago

i have try many parameters but nothing works, i got a restart loop. i checked RUN_OPTS enviroment, thats correct.

try yourself with `environment:

github-actions[bot] commented 1 year ago

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

jarondl commented 1 year ago

Maybe this is related to #204 (by @aptalca). Anyway, I ran docker exec tvheadend /bin/bash, and inside it echo $RUN_OPTS. It printed out "--http_root /tv". Notice the quotes! What worked for me as a workaround was quoting the whole environment variable. Replacing:

environment:
  - RUN_OPTS=--http_root /tv

With:

environment:
  - "RUN_OPTS=--http_root /tv"

And everything worked.

Either the code needs to be fixed, or the docs updated to include these quotes.

github-actions[bot] commented 1 year 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.

jarondl commented 1 year ago

This is not stale.

j0nnymoe commented 1 year ago

I don't see why this is still open, you figured out you need to wrap the env in " like you provided above.