MiniDLNA add-on

This commit is contained in:
Bogdan Vlaicu
2020-04-11 10:24:03 -04:00
parent 7c3322a6d4
commit 6ae015bdd7
5 changed files with 10 additions and 34 deletions
+5 -5
View File
@@ -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 -4
View File
@@ -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