From c45f84aa277c2ab9019f3f60a9336b2b411dd06a Mon Sep 17 00:00:00 2001 From: tobbenb Date: Tue, 7 Feb 2017 22:23:55 +0100 Subject: [PATCH 1/2] Add variable to add additional runtime paramters --- README.md | 8 ++++++++ root/etc/services.d/tvheadend/run | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d25ed6b..687e06e 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ docker create \ -v :/config \ -v :/recordings \ -e PGID= -e PUID= \ + -e RUN_OPTS= \ -p 9981:9981 \ -p 9982:9982 \ --device=/dev/dvb @@ -64,6 +65,7 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po * `-v /recordings` - Where you want the PVR to store recordings * `-e PGID` for GroupID - see below for explanation * `-e PUID` for UserID - see below for explanation +* `-e RUN_OPTS` additional runtime parameters - see below for explanation * `--device=/dev/dvb` - for passing through DVB-cards * `--net=host` - for IPTV, SAT>IP and HDHomeRun * `-e TZ` - for timezone information *eg Europe/London, etc* @@ -81,6 +83,11 @@ In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as bel uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup) ``` +## Additional runtime parameters + +In some cases it might be necessary to start tvheadend with additional parameters, for example to enable debugging or specify webroot for reverse proxy. Be sure to have the right parameters set, as adding the wrong once might lead to the container not starting correctly. + + ## Setting up the application The setup depends if you run the one of the stable tags or use latest. Running latest is the easiest as it has a setup wizard. @@ -144,6 +151,7 @@ You need to enable minimum advanced view level to see the picons options. ## Versions ++ **07.02.2017:** Add variable to add additional runtime paramters. + **05.02.2017:** Update to alpine 3.5 and change dvb-apps to only compile needed libs. + **14.11.2016:** Add picons from picons.xyz to /picons folder and add info to README. + **22.09.2016:** Fix broken tv_grab_wg, libs for xmltv and update README. diff --git a/root/etc/services.d/tvheadend/run b/root/etc/services.d/tvheadend/run index f257ab8..486902b 100755 --- a/root/etc/services.d/tvheadend/run +++ b/root/etc/services.d/tvheadend/run @@ -1,3 +1,6 @@ #!/usr/bin/with-contenv bash + +RUN_ARRAY=(${RUN_OPTS}) + exec \ - s6-setuidgid abc /usr/bin/tvheadend -C -c /config + s6-setuidgid abc /usr/bin/tvheadend -C -c /config "${RUN_ARRAY[@]}" \ No newline at end of file From f7d763f73f56d1aa55bde244a95d379f7a76c7d1 Mon Sep 17 00:00:00 2001 From: tobbenb Date: Tue, 7 Feb 2017 22:28:56 +0100 Subject: [PATCH 2/2] Fix missing open line at end of run file --- root/etc/services.d/tvheadend/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/services.d/tvheadend/run b/root/etc/services.d/tvheadend/run index 486902b..d80b55c 100755 --- a/root/etc/services.d/tvheadend/run +++ b/root/etc/services.d/tvheadend/run @@ -3,4 +3,4 @@ RUN_ARRAY=(${RUN_OPTS}) exec \ - s6-setuidgid abc /usr/bin/tvheadend -C -c /config "${RUN_ARRAY[@]}" \ No newline at end of file + s6-setuidgid abc /usr/bin/tvheadend -C -c /config "${RUN_ARRAY[@]}"