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 5e8bb301e..7f766dbc1 100644 --- a/bazarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/bazarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi diff --git a/cloudcommander/rootfs/run.sh b/cloudcommander/rootfs/run.sh index 58ef03229..85d7b687d 100644 --- a/cloudcommander/rootfs/run.sh +++ b/cloudcommander/rootfs/run.sh @@ -98,7 +98,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh +++ b/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/emby/root/etc/cont-init.d/92-smb_mounts.sh +++ b/emby/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi diff --git a/filebrowser/rootfs/92-smb_mounts.sh b/filebrowser/rootfs/92-smb_mounts.sh index 38fe4566b..eccb42d4e 100644 --- a/filebrowser/rootfs/92-smb_mounts.sh +++ b/filebrowser/rootfs/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi diff --git a/filebrowser/rootfs/run.sh b/filebrowser/rootfs/run.sh index bd1ef7ff2..88521f8f7 100644 --- a/filebrowser/rootfs/run.sh +++ b/filebrowser/rootfs/run.sh @@ -63,9 +63,9 @@ if bashio::config.has_value 'localdisks'; then bashio::log.warning "Protection mode is ON. Unable to mount local drives!" fi || true -######################### -# MOUNT SMB SHARES v1.6 # -######################### +###################### +# EXECUTE SMB SCRIPT # +###################### chown $(id -u):$(id -g) /92-smb_mounts.sh chmod a+x /92-smb_mounts.sh /./92-smb_mounts.sh 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 38fe4566b..eccb42d4e 100644 --- a/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh +++ b/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/lidarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/lidarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi diff --git a/photoprism/rootfs/run.sh b/photoprism/rootfs/run.sh index 882c5a715..ba6459344 100644 --- a/photoprism/rootfs/run.sh +++ b/photoprism/rootfs/run.sh @@ -99,7 +99,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/plex/root/etc/cont-init.d/92-smb_mounts.sh +++ b/plex/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/radarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/radarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/readarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/readarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/sonarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/sonarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi 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 38fe4566b..eccb42d4e 100644 --- a/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -34,7 +34,7 @@ if bashio::config.has_value 'networkdisks'; then diskname=${diskname##*/} # Get only last part of the name # Data validation - if [[ ! $ip =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then + 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" exit 1 fi