Update 92-local_mounts.sh

This commit is contained in:
Alexandre
2021-10-23 21:07:14 +02:00
committed by GitHub
parent 2163092323
commit a37eacfe35

View File

@@ -19,9 +19,6 @@ if bashio::config.has_value 'localdisks'; then
mkdir -p /$MOUNTPOINTS/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" ||
# Error message and clean remaining folder
(bashio::log.warning "Unable to mount local drives!" &&
rmdir /$MOUNTPOINTS/$disk)
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk"
done
fi
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk)