minidlna: run as an unprivileged user

- run as an unprivileged user by default
- move generated config to /var/run (/tmp/run in fact)
- disable service until it's configured: there is no way to reliably guess
  where files to be shared are located

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
Maxim Storchak
2019-02-26 15:33:37 +02:00
committed by Yousong Zhou
parent 7450b5fec5
commit 6f83fedc21
3 changed files with 31 additions and 25 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
config minidlna config
option 'enabled' '1'
option 'enabled' '0'
option user 'minidlna'
option port '8200'
option interface 'br-lan'
option friendly_name 'OpenWrt DLNA Server'
option db_dir '/var/run/minidlna'
option log_dir '/var/log'
option log_dir '/var/log/minidlna'
option inotify '1'
option enable_tivo '0'
option wide_links '0'