Bug #6140
"tvheadend --firstrun --abort" exits without saving the configuration
0%
Description
OpenWrt uses this command for the first run after tvheadend package is installed:tvheadend -c /etc/tvheadend -B -C -A
This command should create initial admin account without password and save it to /etc/tvheadend. It does not. Tvheadend aborts execution before the files are saved to disk.
It was working in tvheadend v4.0.10. After I updated the package to v4.2.8 it's not working anymore. Also not working in current master branch.
To reproduce:
- Install tvheadend
- Remove /etc/tvheadend
- Run the command
- tvheadend shows messages that a new account is created, but /etc/tvheadend remains empty after tvheadend exits.
I am attaching 2 strace files, with and without --abort, showing that --abort (-A) causes tvheadend to exit before configuration files are saved.
Files
History
Updated by saen acro almost 3 years ago
Wondering whot mean for you "Abort"
It's normal when refuse not to do anything.
Updated by Marius Dinu almost 3 years ago
"-A" (short form) or "--abort" (long form) is a tvheadend switch. As I understand, it should terminate execution after -C switch creates the initial configuration.