From 2779de0e99583d9d89a451cfd171cbe6ef51d19c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 23 Oct 2021 07:04:03 +0200 Subject: [PATCH] Mountpoint --- qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh index e4b37713b..ab4191418 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh @@ -56,6 +56,7 @@ if bashio::config.has_value 'networkdisks'; then # Messages if [ $MOUNTED = true ]; then + mountpoint -q /mnt/$diskname && bashio::log.info "... $disk successfully mounted to /mnt/$diskname with options $SMBVERS$SECVERS" || bashio::log.fatal "Something went wrong with the disk mount!" #Test write permissions touch /mnt/$diskname/testaze && rm /mnt/$diskname/testaze && bashio::log.info "... $disk successfully mounted to /mnt/$diskname with options $SMBVERS$SECVERS" || bashio::log.fatal "Disk is mounted, however unable to write in the shared disk. Please check UID/GID for permissions, and if the share is rw" else