Update 50-mounts

This commit is contained in:
Alexandre
2020-11-29 19:12:44 +01:00
committed by GitHub
parent 04262f1d5d
commit 974e5e5b75

View File

@@ -10,15 +10,14 @@ if bashio::config.has_value 'localdisks'; then
for disk in $MOREDISKS
do
bashio::log.info "Mount ${disk}"
mkdir -p /$disk && \
if [ ! -d /share/storage ]; then
echo "Creating /share/storage"
mkdir -p /share/storage
chown -R abc:abc /share/storage
mkdir -p /share/$disk && \
if [ ! -d /share/$disk ]; then
echo "Creating /share/$disk"
mkdir -p /share/$disk
chown -R abc:abc /share/$disk
fi
mount $disk /share/storage && \
mount $disk /share/$disk && \
bashio::log.info "Success!"
done || \
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"