MiniDLNA add-on

This commit is contained in:
Bogdan Vlaicu
2020-04-11 10:19:17 -04:00
parent 118c7fa42c
commit 7c3322a6d4
9 changed files with 159 additions and 2 deletions
@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bash
# ==============================================================================
# Community Hass.io Add-ons: torrdlna
# Ensures necessary directories exists
# ==============================================================================
# shellcheck disable=SC1091
source /usr/lib/hassio-addons/base.sh
if ! hass.directory_exists '/share/hdd/incomplete'; then
mkdir -p /share/hdd/incomplete || hass.die 'Could not create hdd torrents incomplete directory'
chmod -R 0777 /share/hdd/incomplete
fi