From c100b5e98da491f15c622e127cbe0ccd686e5f27 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 24 Apr 2021 11:01:09 +0200 Subject: [PATCH] Update 92-smb_mounts_v1.2.sh --- qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.2.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.2.sh b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.2.sh index bbcd51ee3..3551a73b8 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.2.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts_v1.2.sh @@ -59,9 +59,12 @@ if bashio::config.has_value 'networkdisks'; then bashio::log.info "... $disk successfully mounted to /mnt/$disk name with ntlmv2 and smbv3" fi - # if still fail if [ $? != 0 ]; then + # message if still fail bashio::log.critical "Unable to mount $disk to /mnt/$diskname with username $CIFS_USERNAME, $CIFS_PASSWORD . Please check your remote share path, the username and password, and try to check the smbv1 box in option if your share is using smb v1" # Mount share + else + # test write permissions + touch /mnt/$diskname/testaze && rm /mnt/$diskname/testaze || bashio::log.critical "Unable to write in the shared disk. Please check UID/GID for permissions, and if the share is rw" fi done