From 62cf6f2a846ee3a51d3d3d31a389fe770e56109c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 17 Feb 2022 19:53:20 +0100 Subject: [PATCH] Update 92-local_mounts.sh --- .templates/92-local_mounts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.templates/92-local_mounts.sh b/.templates/92-local_mounts.sh index b72eadb45..38a706a96 100644 --- a/.templates/92-local_mounts.sh +++ b/.templates/92-local_mounts.sh @@ -25,8 +25,10 @@ if bashio::config.has_value 'localdisks'; then mkdir -p /mnt/"$disk" chown -R "$(id -u)":"$(id -g)" /mnt/"$disk" # Legacy mounting : mount to share if still exists (avoid breaking changes) + # shellcheck disable=SC2015 [ -d /share/"$disk" ] && mount "$devpath"/"$disk" /share/"$disk" || true # Mount + # shellcheck disable=SC2015 mount "$devpath"/"$disk" /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