MiniDLNA add-on
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "MiniDLNA",
|
"name": "MiniDLNA",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"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",
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
# Ensures necessary directories exists
|
# Ensures necessary directories exists
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
source /usr/lib/hassio-addons/base.sh
|
#source /usr/lib/hassio-addons/base.sh
|
||||||
|
|
||||||
if ! hass.directory_exists '/share/hdd'; then
|
#if ! hass.directory_exists '/share/hdd'; then
|
||||||
mkdir -p /share/hdd || hass.die 'Could not create hdd mount directory'
|
# mkdir -p /share/hdd || hass.die 'Could not create hdd mount directory'
|
||||||
chmod -R 0777 /share/hdd
|
# chmod -R 0777 /share/hdd
|
||||||
fi
|
#fi
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
# Ensures necessary mounting is done
|
# Ensures necessary mounting is done
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
source /usr/lib/hassio-addons/base.sh
|
#source /usr/lib/hassio-addons/base.sh
|
||||||
|
|
||||||
if ! grep -qs '/share/hdd' /proc/mounts; then
|
#if ! grep -qs '/share/hdd' /proc/mounts; then
|
||||||
mount /dev/sda1 /share/hdd || hass.die 'Could not mount hdd'
|
# mount /dev/sda1 /share/hdd || hass.die 'Could not mount hdd'
|
||||||
fi
|
#fi
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/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/torrents'; then
|
|
||||||
mkdir -p /share/hdd/torrents || hass.die 'Could not create hdd torrents directory'
|
|
||||||
chmod -R 0777 /share/hdd/torrents
|
|
||||||
fi
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/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
|
|
||||||
Reference in New Issue
Block a user