From 39d0c46467b574f970efc0df0893da4c01899b92 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 21 Oct 2022 18:03:05 +0100 Subject: [PATCH] Test with uid https://github.com/alexbelgium/hassio-addons/issues/523 --- .templates/92-local_mounts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.templates/92-local_mounts.sh b/.templates/92-local_mounts.sh index 0edb9d349..d999c3261 100644 --- a/.templates/92-local_mounts.sh +++ b/.templates/92-local_mounts.sh @@ -44,7 +44,8 @@ if bashio::config.has_value 'localdisks'; then [ -d /share/"$disk" ] && mount "$devpath"/"$disk" /share/"$disk" || true # Mount # shellcheck disable=SC2015 - mount "$devpath"/"$disk" -o "uid=$PUID,gid=$PGID" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk" || (bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk) + mount "$devpath"/"$disk" -o "uid=$PUID,gid=$PGID" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk" || \ + mount "$devpath"/"$disk" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk" || (bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk) done