From 5358e7e1a429949810173f065b2b8b92b033f9be Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 23 Oct 2021 21:05:45 +0200 Subject: [PATCH] Update 92-local_mounts.sh --- qbittorrent/rootfs/etc/cont-init.d/92-local_mounts.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/92-local_mounts.sh b/qbittorrent/rootfs/etc/cont-init.d/92-local_mounts.sh index 88923b585..07c07658b 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-local_mounts.sh +++ b/qbittorrent/rootfs/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)