MiniDLNA add-on
This commit is contained in:
+10
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "MiniDLNA",
|
"name": "MiniDLNA",
|
||||||
"version": "0.1.5",
|
"version": "0.1.6",
|
||||||
"slug": "minidlna",
|
"slug": "minidlna",
|
||||||
"description": "RedyMedia MiniDLNA daemon serves media files (music, pictures, and video) to clients on a network",
|
"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",
|
"url": "https://github.com/bvlaicu/home-assistant-addons/tree/master/minidlna",
|
||||||
@@ -21,10 +21,17 @@
|
|||||||
"homeassistant_api": false,
|
"homeassistant_api": false,
|
||||||
"host_network": true,
|
"host_network": true,
|
||||||
"options": {
|
"options": {
|
||||||
"log_level": "info"
|
"log_level": "info",
|
||||||
|
"envvars": []
|
||||||
},
|
},
|
||||||
"schema": {
|
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
CONFIG_PATH=/data/options.json
|
||||||
|
|
||||||
|
ENVVARS="$(jq --raw-output '.envvars' $CONFIG_PATH)"
|
||||||
|
|
||||||
|
echo "ENVVARS=${ENVVARS}"
|
||||||
|
|
||||||
> /etc/minidlna.conf2
|
> /etc/minidlna.conf2
|
||||||
|
|
||||||
for VAR in `env`; do
|
for VAR in `env`; do
|
||||||
|
|||||||
Reference in New Issue
Block a user