mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-25 05:56:28 +01:00
Update 50-mounts
This commit is contained in:
@@ -29,13 +29,15 @@ fi
|
|||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
if bashio::config.has_value 'networkdisks'; then
|
||||||
MOREDISKS="$(bashio::config 'networkdisks')"
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
CIFS_USERNAME=$(bashio::config 'cifsusername')
|
CIFS_USERNAME=$(bashio::config 'cifsusername')
|
||||||
CIFS_PASSWORD=$(bashio::config 'cifspassword')
|
CIFS_PASSWORD=$(bashio::config 'cifspassword')
|
||||||
ITERATOR=1
|
ITERATOR=1
|
||||||
bashio::log.info "Network Disks mounting.. $MOREDISKS" && \
|
bashio::log.info "Network Disks mounting.. $MOREDISKS" && \
|
||||||
for disk in $MOREDISKS
|
for disk in $MOREDISKS
|
||||||
do
|
do
|
||||||
|
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
|
||||||
|
disk=${disk//\\//} #replace \ with /
|
||||||
bashio::log.info "Mount $disk"
|
bashio::log.info "Mount $disk"
|
||||||
if [ "$ITERATOR" -eq "1" ]; then
|
if [ "$ITERATOR" -eq "1" ]; then
|
||||||
mkdir -p /share/storagecifs && \
|
mkdir -p /share/storagecifs && \
|
||||||
|
|||||||
Reference in New Issue
Block a user