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