From 39e3c1f4f1560e8657556859dadaae38a2b96c41 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 24 Oct 2021 14:36:21 +0200 Subject: [PATCH] Removed Exit 1 --- README.md | 4 +++- bazarr/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- cloudcommander/rootfs/92-smb_mounts.sh | 3 +-- code-server/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- doublecommander/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- emby/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- jackett/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- jellyfin/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- lidarr/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh | 3 +-- photoprism/rootfs/92-smb_mounts.sh | 3 +-- piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh | 3 +-- plex/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- prowlarr/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh | 3 +-- radarr/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- readarr/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- sonarr/root/etc/cont-init.d/92-smb_mounts.sh | 3 +-- transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh | 3 +-- ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh | 3 +-- 20 files changed, 22 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index ab87292ce..88edd3e1d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Home assistant add-on: alexbelgium + 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 + # Home assistant add-on: alexbelgium [![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium) ![update-badge] 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 3d85027f1..3598223d2 100644 --- a/bazarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/bazarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" fi # Prepare mount point diff --git a/cloudcommander/rootfs/92-smb_mounts.sh b/cloudcommander/rootfs/92-smb_mounts.sh index 39822433b..d7416fbec 100644 --- a/cloudcommander/rootfs/92-smb_mounts.sh +++ b/cloudcommander/rootfs/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" fi # Prepare mount point 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 39822433b..d7416fbec 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 @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh +++ b/doublecommander/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/emby/root/etc/cont-init.d/92-smb_mounts.sh +++ b/emby/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" fi # Prepare mount point 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 39822433b..d7416fbec 100644 --- a/jackett/root/etc/cont-init.d/92-smb_mounts.sh +++ b/jackett/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh +++ b/jellyfin/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/lidarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/lidarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/papermerge/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" fi # Prepare mount point diff --git a/photoprism/rootfs/92-smb_mounts.sh b/photoprism/rootfs/92-smb_mounts.sh index 39822433b..d7416fbec 100644 --- a/photoprism/rootfs/92-smb_mounts.sh +++ b/photoprism/rootfs/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" fi # Prepare mount point 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 39822433b..d7416fbec 100644 --- a/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/piwigo/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/plex/root/etc/cont-init.d/92-smb_mounts.sh +++ b/plex/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/prowlarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/radarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/radarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/readarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/readarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/sonarr/root/etc/cont-init.d/92-smb_mounts.sh +++ b/sonarr/root/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/transmission/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" 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 39822433b..d7416fbec 100644 --- a/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh +++ b/ubooquity/rootfs/etc/cont-init.d/92-smb_mounts.sh @@ -36,8 +36,7 @@ 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" - exit 1 +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" fi # Prepare mount point