From 1cd853c0cbad617f96d80c61e8a697cdbde06da4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 4 Mar 2023 07:36:32 +0100 Subject: [PATCH] Stop addon if failure --- .templates/92-local_mounts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/92-local_mounts.sh b/.templates/92-local_mounts.sh index e54843e94..c6ff7498c 100755 --- a/.templates/92-local_mounts.sh +++ b/.templates/92-local_mounts.sh @@ -70,7 +70,7 @@ if bashio::config.has_value 'localdisks'; then # shellcheck disable=SC2015 mount -t $type "$devpath"/"$disk" "$dirpath"/"$disk" -o $options && bashio::log.info "Success! $disk mounted to /mnt/$disk" || \ - (bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk) + (bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk && bashio::addon.stop) done fi