Update 92-local_mounts.sh

This commit is contained in:
Alexandre
2023-01-31 18:13:47 +01:00
committed by GitHub
parent 4bc256385c
commit e14b4f1cf1

View File

@@ -44,7 +44,7 @@ if bashio::config.has_value 'localdisks'; then
[ -d /share/"$disk" ] && mount "$devpath"/"$disk" /share/"$disk" || true
# Mount
# Mount if ntfs
if [[ command -v "apk" &>/dev/null && "$(fdisk -l "$devpath"/"$disk")" == *NTFS* ]]; then
if command -v "apk" &>/dev/null && [[ "$(fdisk -l "$devpath"/"$disk")" == *NTFS* ]]; then
bashio::log.info "NTFS on Alpine detected, mounting with ntfs-3g"
ntfs-3g "$devpath"/"$disk" /mnt/"$disk" || true
fi