tvheadend: fix first-run
The first-run command should create a new tvheadend configuration including an admin account with no name and no password, but it aborts (-A) too early without saving the files. I reported the bug here: https://tvheadend.org/issues/6140 This workaround fixes the problem by removing the tvheadend -A switch and replacing it with a 10s delay and a kill signal. That should be enough even for slow routers to generate and save the configuration. It is meant to be a temporary fix until tvheadend bug is resolved. Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
This commit is contained in:
parent
362c8c4df3
commit
43276c6494
1 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,12 @@ TEMP_CONFIG=/tmp/tvheadend
|
|||
PERSISTENT_CONFIG=/etc/tvheadend
|
||||
|
||||
execute_first_run() {
|
||||
"$PROG" -c "$1" -B -C -A >/dev/null 2>&1
|
||||
# This should create a new configuration including an admin account with no name and no password,
|
||||
# but it aborts (-A) too early without saving it:
|
||||
# "$PROG" -c "$1" -B -C -A >/dev/null 2>&1
|
||||
# Instead, run it for 10s, then kill it:
|
||||
"$PROG" -c "$1" -B -C & TVH_PID=$! ; sleep 10 ; kill $TVH_PID ; sleep 2
|
||||
# Remove this and go back to initial command if it's working again in newer tvheadend versions.
|
||||
}
|
||||
|
||||
ensure_config_exists() {
|
||||
|
|
Loading…
Reference in a new issue