Update 92-local_mounts.sh

This commit is contained in:
Alexandre
2023-02-15 11:19:03 +01:00
committed by GitHub
parent 4a27053fd1
commit ea78f65f45

View File

@@ -40,19 +40,19 @@ if bashio::config.has_value 'localdisks'; then
fstype=$(lsblk "$devpath"/"$disk" -no fstype) fstype=$(lsblk "$devpath"/"$disk" -no fstype)
options="nosuid,relatime,noexec" options="nosuid,relatime,noexec"
type="auto" type="auto"
bashio::log.info "Mounting ${disk} of type ${fstype}"
case "$fstype" in case "$fstype" in
exfat | vfat | msdos) exfat | vfat | msdos)
bashio::log.warning "${disk} is ${fstype}. Permissions and ACL don't works and this is an EXPERIMENTAL support" bashio::log.warning "${fstype} permissions and ACL don't works and this is an EXPERIMENTAL support"
options="${options},umask=000" options="${options},umask=000"
;; ;;
ntfs) ntfs)
bashio::log.warning "${disk} is ${fstype}. This is an EXPERIMENTAL support" bashio::log.warning "${fstype} is an EXPERIMENTAL support"
options="${options},umask=000" options="${options},umask=000"
type="ntfs3" type="ntfs3"
;; ;;
*) *)
bashio::log.info "Mounting ${mdisk} of type ${fstype}"
if bashio::config.has_value 'PUID' && bashio::config.has_value 'PGID'; then if bashio::config.has_value 'PUID' && bashio::config.has_value 'PGID'; then
echo "Using PUID $(bashio::config 'PUID') and PGID $(bashio::config 'PGID')" echo "Using PUID $(bashio::config 'PUID') and PGID $(bashio::config 'PGID')"
options="$options,uid=$(bashio::config 'PUID'),gid=$(bashio::config 'PGID')" options="$options,uid=$(bashio::config 'PUID'),gid=$(bashio::config 'PGID')"