diff --git a/bazarr/root/etc/cont-init.d/92-smb_mounts.sh b/bazarr/root/etc/cont-init.d/92-smb_mounts.sh index 3af6a1539..cf64c2625 100644 --- a/bazarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/bazarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/cloudcommander/rootfs/92-smb_mounts.sh b/cloudcommander/rootfs/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/cloudcommander/rootfs/92-smb_mounts.sh +++ b/cloudcommander/rootfs/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/code-server/root/etc/cont-init.d/92-smb_mounts.sh b/code-server/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/code-server/root/etc/cont-init.d/92-smb_mounts.sh +++ b/code-server/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh b/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh +++ b/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/emby/root/etc/cont-init.d/92-smb_mounts.sh b/emby/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/emby/root/etc/cont-init.d/92-smb_mounts.sh +++ b/emby/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/filebrowser/rootfs/92-smb_mounts.sh b/filebrowser/rootfs/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/filebrowser/rootfs/92-smb_mounts.sh +++ b/filebrowser/rootfs/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/jackett/root/etc/cont-init.d/92-smb_mounts.sh b/jackett/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/jackett/root/etc/cont-init.d/92-smb_mounts.sh +++ b/jackett/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh b/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh +++ b/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/lidarr/root/etc/cont-init.d/92-smb_mounts.sh b/lidarr/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/lidarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/lidarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh b/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/photoprism/rootfs/92-smb_mounts.sh b/photoprism/rootfs/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/photoprism/rootfs/92-smb_mounts.sh +++ b/photoprism/rootfs/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh b/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/plex/root/etc/cont-init.d/92-smb_mounts.sh b/plex/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/plex/root/etc/cont-init.d/92-smb_mounts.sh +++ b/plex/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh b/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/radarr/root/etc/cont-init.d/92-smb_mounts.sh b/radarr/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/radarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/radarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/readarr/root/etc/cont-init.d/92-smb_mounts.sh b/readarr/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..05828d992 100644 --- a/readarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/readarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' diff --git a/sonarr/root/etc/cont-init.d/92-smb_mounts.sh b/sonarr/root/etc/cont-init.d/92-smb_mounts.sh index eccb42d4e..14ad29383 100644 --- a/sonarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/sonarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -14,7 +14,9 @@ if bashio::config.has_value 'networkdisks'; then SECVERS="" # Dont execute if still default - [ ${MOREDISKS::1} == "<" ] && exit 0 + [ ${MOREDISKS::1} == "<" ] \ + && bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \ + && exit 0 # Mount CIFS Share if configured and if Protection Mode is active bashio::log.info 'Mounting smb share(s)...' @@ -59,9 +61,9 @@ if bashio::config.has_value 'networkdisks'; then # Messages if [ $MOUNTED = true ] && [ "mountpoint -q /mnt/$diskname" ]; then #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" + 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 # Mounting failed messages @@ -70,8 +72,8 @@ if bashio::config.has_value 'networkdisks'; then # Provide debugging info smbclient -V &>/dev/null || apt-get install smbclient || apk add --no-cache samba-client - #smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + #smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(