MiniDLNA add-on

This commit is contained in:
Bogdan Vlaicu
2020-04-13 18:10:14 -04:00
parent 9ced404f0d
commit 46ee35a559
2 changed files with 16 additions and 3 deletions
+10 -3
View File
@@ -1,6 +1,6 @@
{
"name": "MiniDLNA",
"version": "0.1.5",
"version": "0.1.6",
"slug": "minidlna",
"description": "RedyMedia MiniDLNA daemon serves media files (music, pictures, and video) to clients on a network",
"url": "https://github.com/bvlaicu/home-assistant-addons/tree/master/minidlna",
@@ -21,10 +21,17 @@
"homeassistant_api": false,
"host_network": true,
"options": {
"log_level": "info"
"log_level": "info",
"envvars": []
},
"schema": {
"log_level": "list(trace|debug|info|notice|warning|error|fatal)"
"log_level": "list(trace|debug|info|notice|warning|error|fatal)",
"envvars": [
{
"name": "match(^MINIDLNA_([A-Z0-9_])+$)",
"value": "str"
}
]
}
}
+6
View File
@@ -2,6 +2,12 @@
set -e
CONFIG_PATH=/data/options.json
ENVVARS="$(jq --raw-output '.envvars' $CONFIG_PATH)"
echo "ENVVARS=${ENVVARS}"
> /etc/minidlna.conf2
for VAR in `env`; do