From 86933d6cb29ae0770b8e8a467817d50ce469f304 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 23 Oct 2021 21:12:21 +0200 Subject: [PATCH] Update 92-local_mounts.sh --- sonarr/root/etc/cont-init.d/92-local_mounts.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sonarr/root/etc/cont-init.d/92-local_mounts.sh b/sonarr/root/etc/cont-init.d/92-local_mounts.sh index c7f0a4f3b..b8f4e203a 100644 --- a/sonarr/root/etc/cont-init.d/92-local_mounts.sh +++ b/sonarr/root/etc/cont-init.d/92-local_mounts.sh @@ -19,9 +19,6 @@ if bashio::config.has_value 'localdisks'; then mkdir -p /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk mount /dev/$disk /$MOUNTPOINTS/$disk - bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" || - # Error message and clean remaining folder - (bashio::log.warning "Unable to mount local drives!" && - rmdir /$MOUNTPOINTS/$disk) + bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" done -fi +fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk)