mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-13 19:11:35 +02:00
Allow multiple local disks comma separated
This commit is contained in:
@@ -10,7 +10,7 @@ bashio::log.info 'Mounting external hdd...'
|
|||||||
if bashio::config.has_value 'localdisks'; then
|
if bashio::config.has_value 'localdisks'; then
|
||||||
MOREDISKS=$(bashio::config 'localdisks')
|
MOREDISKS=$(bashio::config 'localdisks')
|
||||||
bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \
|
bashio::log.info "Local Disks mounting.. ${MOREDISKS}" && \
|
||||||
for disk in $MOREDISKS
|
for disk in ${MOREDISKS//,/ } # Separate comma separated values
|
||||||
do
|
do
|
||||||
bashio::log.info "Mount ${disk}"
|
bashio::log.info "Mount ${disk}"
|
||||||
mkdir -p /share/$disk && \
|
mkdir -p /share/$disk && \
|
||||||
Reference in New Issue
Block a user