diff --git a/cloudcommander/rootfs/run.sh b/cloudcommander/rootfs/run.sh index 6c94acfdb..297b498c9 100644 --- a/cloudcommander/rootfs/run.sh +++ b/cloudcommander/rootfs/run.sh @@ -6,37 +6,37 @@ if bashio::supervisor.ping; then bashio::log.blue \ - '-----------------------------------------------------------' + '-----------------------------------------------------------' bashio::log.blue " Add-on: $(bashio::addon.name)" bashio::log.blue " $(bashio::addon.description)" bashio::log.blue \ - '-----------------------------------------------------------' + '-----------------------------------------------------------' bashio::log.blue " Add-on version: $(bashio::addon.version)" if bashio::var.true "$(bashio::addon.update_available)"; then bashio::log.magenta ' There is an update available for this add-on!' bashio::log.magenta \ - " Latest add-on version: $(bashio::addon.version_latest)" + " Latest add-on version: $(bashio::addon.version_latest)" bashio::log.magenta ' Please consider upgrading as soon as possible.' else bashio::log.green ' You are running the latest version of this add-on.' fi bashio::log.blue " System: $(bashio::info.operating_system)" \ - " ($(bashio::info.arch) / $(bashio::info.machine))" + " ($(bashio::info.arch) / $(bashio::info.machine))" bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)" bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)" bashio::log.blue \ - '-----------------------------------------------------------' + '-----------------------------------------------------------' bashio::log.blue \ - ' Please, share the above information when looking for help' + ' Please, share the above information when looking for help' bashio::log.blue \ - ' or support in, e.g., GitHub, forums or the Discord chat.' + ' or support in, e.g., GitHub, forums or the Discord chat.' bashio::log.green \ - ' https://github.com/alexbelgium/hassio-addons' + ' https://github.com/alexbelgium/hassio-addons' bashio::log.blue \ - '-----------------------------------------------------------' + '-----------------------------------------------------------' fi ###################### @@ -45,7 +45,8 @@ fi chown $(id -u):$(id -g) /92-local_mounts.sh chmod a+x /92-local_mounts.sh sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-local_mounts.sh -/./92-local_mounts.sh +/./92-local_mounts.sh & +true # Prevents script crash on failure ###################### # EXECUTE SMB SCRIPT # @@ -53,7 +54,8 @@ sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-local_mounts.s chown $(id -u):$(id -g) /92-smb_mounts.sh chmod a+x /92-smb_mounts.sh sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-smb_mounts.sh -/./92-smb_mounts.sh +/./92-smb_mounts.sh & +true # Prevents script crash on failure ################# # NGINX SETTING # 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 d7416fbec..9325634fc 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 @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh +++ b/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/emby/root/etc/cont-init.d/92-smb_mounts.sh +++ b/emby/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point diff --git a/filebrowser/rootfs/run.sh b/filebrowser/rootfs/run.sh index 78a2f331d..99dd76a3a 100644 --- a/filebrowser/rootfs/run.sh +++ b/filebrowser/rootfs/run.sh @@ -45,7 +45,8 @@ fi chown $(id -u):$(id -g) /92-local_mounts.sh chmod a+x /92-local_mounts.sh sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-local_mounts.sh -/./92-local_mounts.sh +/./92-local_mounts.sh & +true # Prevents script crash on failure ###################### # EXECUTE SMB SCRIPT # @@ -53,7 +54,8 @@ sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-local_mounts.s chown $(id -u):$(id -g) /92-smb_mounts.sh chmod a+x /92-smb_mounts.sh sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-smb_mounts.sh -/./92-smb_mounts.sh +/./92-smb_mounts.sh & +true # Prevents script crash on failure ################### # SSL CONFIG v1.0 # 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 d7416fbec..9325634fc 100644 --- a/jackett/root/etc/cont-init.d/92-smb_mounts.sh +++ b/jackett/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh +++ b/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/lidarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/lidarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point diff --git a/photoprism/rootfs/92-smb_mounts.sh b/photoprism/rootfs/92-smb_mounts.sh index d7416fbec..9325634fc 100644 --- a/photoprism/rootfs/92-smb_mounts.sh +++ b/photoprism/rootfs/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point diff --git a/photoprism/rootfs/run.sh b/photoprism/rootfs/run.sh index 9fdab8b81..a4c0674bf 100644 --- a/photoprism/rootfs/run.sh +++ b/photoprism/rootfs/run.sh @@ -47,7 +47,8 @@ fi chown $(id -u):$(id -g) /92-local_mounts.sh chmod a+x /92-local_mounts.sh sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-local_mounts.sh -/./92-local_mounts.sh +/./92-local_mounts.sh & +true # Prevents script crash on failure ###################### # EXECUTE SMB SCRIPT # @@ -55,7 +56,8 @@ sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-local_mounts.s chown $(id -u):$(id -g) /92-smb_mounts.sh chmod a+x /92-smb_mounts.sh sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' /92-smb_mounts.sh -/./92-smb_mounts.sh +/./92-smb_mounts.sh & +true # Prevents script crash on failure ############## # LAUNCH APP # 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 d7416fbec..9325634fc 100644 --- a/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/plex/root/etc/cont-init.d/92-smb_mounts.sh +++ b/plex/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/radarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/radarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/readarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/readarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point 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 d7416fbec..9325634fc 100644 --- a/sonarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/sonarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point diff --git a/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh b/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh index d7416fbec..9325634fc 100644 --- a/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point diff --git a/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh b/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh index d7416fbec..9325634fc 100644 --- a/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -13,10 +13,6 @@ if bashio::config.has_value 'networkdisks'; then SMBVERS="" SECVERS="" - # Dont execute if still default - [ ${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)...' @@ -36,7 +32,8 @@ if bashio::config.has_value 'networkdisks'; then # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then -bashio::log.fatal "The structure of your doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2" + bashio::log.fatal "The structure of your \"networkdisks\" option : \"$disk\" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future." + exit 0 fi # Prepare mount point