From 74e86c6ebf60724388ce4d88c9e1ac6c13b08c56 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 15 Feb 2021 21:45:45 +0100 Subject: [PATCH] Update 92-mounts --- qbittorrent/rootfs/etc/cont-init.d/92-mounts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/92-mounts b/qbittorrent/rootfs/etc/cont-init.d/92-mounts index b8cb2b720..5b3d45ba2 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-mounts +++ b/qbittorrent/rootfs/etc/cont-init.d/92-mounts @@ -36,15 +36,11 @@ if bashio::config.has_value 'networkdisks'; then for disk in $MOREDISKS do bashio::log.info "Mount ${disk}" - mkdir -p /share/storagecifs && \ - if [ ! -d /storage/storagecifs ]; then - echo "Creating /storage/storagecifs" - mkdir -p /storage/storagecifs - chown -R abc:abc /storage/storagecifs - fi - - mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \ - bashio::log.info "Success!" + echo "Creating /storage/storagecifs" + mkdir -p /storage/storagecifs + chown -R abc:abc /storage/storagecifs + mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \ + bashio::log.info "Success!" done || \ bashio::log.warning "Protection mode is ON. Unable to mount external drives!" fi