From c55f3c675253140f9fe3e0e6fbe281d573b5d5c4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:02:29 +0200 Subject: [PATCH] Add set -e --- .templates/00-aaa_dockerfile_backup.sh | 1 + .templates/00-banner.sh | 1 + .templates/00-global_var.sh | 1 + .templates/00-local_mounts.sh | 1 + .templates/00-smb_mounts.sh | 7 ++++--- .templates/01-custom_script.sh | 1 + .templates/19-json_repair.sh | 1 + .templates/90-config_yaml.sh | 1 + .templates/90-disable_ingress.sh | 1 + .templates/90-dns_set.sh | 1 + .templates/91-silent.sh | 1 + .templates/91-universal_graphic_drivers.sh | 1 + .templates/99-custom_script.sh | 1 + .templates/ha_autoapps.sh | 1 + .templates/ha_automatic_packages.sh | 1 + .templates/ha_automodules.sh | 1 + .templates/ha_entrypoint.sh | 1 + .templates/ha_entrypoint_modif.sh | 1 + .templates/ha_lsio.sh | 1 + addons_updater/rootfs/etc/cont-init.d/99-run.sh | 5 +++-- arpspoof/rootfs/etc/cont-init.d/99-run.sh | 1 + autobrr/rootfs/etc/cont-init.d/20-folders.sh | 1 + autobrr/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + autobrr/rootfs/etc/cont-init.d/91-run.sh | 1 + binance-trading-bot/rootfs/etc/cont-init.d/20-folders.sh | 1 + binance-trading-bot/rootfs/etc/cont-init.d/32-ingress.sh | 1 + binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh | 1 + bitwarden/rootfs/etc/cont-init.d/nginx.sh | 1 + bitwarden/rootfs/etc/services.d/bitwarden/run | 1 + bitwarden/rootfs/etc/services.d/nginx/run | 1 + calibre/rootfs/etc/cont-init.d/20-folders.sh | 1 + calibre/rootfs/etc/cont-init.d/80-configuration.sh | 1 + calibre/rootfs/etc/cont-init.d/90-ingress.sh | 1 + calibre_web/rootfs/etc/cont-init.d/00-data_location.sh | 1 + calibre_web/rootfs/etc/cont-init.d/32-nginx.sh | 1 + calibre_web/rootfs/etc/cont-init.d/80-configuration.sh | 1 + calibre_web/rootfs/etc/services.d/nginx/run | 1 + changedetection.io/rootfs/etc/cont-init.d/21-folders.sh | 1 + cloudcommander/rootfs/etc/cont-init.d/99-run.sh | 1 + emby/rootfs/etc/cont-init.d/20-folders.sh | 1 + emby/rootfs/etc/cont-init.d/32-nginx.sh | 1 + emby/rootfs/etc/cont-init.d/91-silent.sh | 1 + emby/rootfs/etc/services.d/nginx/run | 1 + .../rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + .../rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh | 1 + enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh | 1 + .../rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + .../rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh | 1 + enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh | 1 + epicgamesfree/rootfs/etc/cont-init.d/20-folders.sh | 1 + epicgamesfree/rootfs/etc/cont-init.d/99-run.sh | 1 + filebrowser/rootfs/etc/cont-init.d/20-folders.sh | 1 + filebrowser/rootfs/etc/cont-init.d/99-run.sh | 1 + fireflyiii/rootfs/etc/cont-init.d/99-run.sh | 1 + fireflyiii/rootfs/templates/cronupdate | 1 + .../rootfs/etc/cont-init.d/20-folders.sh | 1 + fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh | 1 + fireflyiii_data_importer/rootfs/templates/cronupdate | 1 + .../rootfs/etc/cont-init.d/20-folders.sh | 1 + fireflyiii_fints_importer/rootfs/etc/cont-init.d/99-run.sh | 1 + fireflyiii_fints_importer/rootfs/templates/cronupdate | 1 + flaresolverr/rootfs/etc/cont-init.d/99-run.sh | 1 + flexget/rootfs/etc/cont-init.d/00-folders.sh | 1 + free_games_claimer/rootfs/etc/cont-init.d/20-folders.sh | 1 + free_games_claimer/rootfs/etc/cont-init.d/99-run.sh | 1 + gazpar2mqtt/rootfs/etc/cont-init.d/89-mqtt_autodiscover.sh | 1 + gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh | 1 + gitea/rootfs/etc/cont-init.d/99-run.sh | 1 + grav/rootfs/etc/cont-init.d/20-folders.sh | 1 + guacamole/rootfs/etc/cont-init.d/50-folders.sh | 1 + guacamole/rootfs/etc/cont-init.d/90-ingress.sh | 1 + guacamole/rootfs/etc/services.d/nginx/run | 1 + immich/rootfs/etc/cont-init.d/20-folders.sh | 1 + immich/rootfs/etc/cont-init.d/99-run.sh | 1 + inadyn/rootfs/etc/cont-init.d/99-run.sh | 1 + jellyfin/rootfs/etc/cont-init.d/20-folders.sh | 1 + jellyfin/rootfs/etc/cont-init.d/32-ingress.sh | 1 + jellyfin/rootfs/etc/cont-init.d/90-data_location.sh | 1 + jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh | 1 + jellyfin/rootfs/etc/services.d/nginx/run | 1 + jellyseerr/rootfs/etc/cont-init.d/90-run.sh | 1 + joal/rootfs/etc/cont-init.d/99-run.sh | 1 + joplin/rootfs/etc/cont-init.d/99-run.sh | 1 + lidarr/rootfs/etc/cont-init.d/20-folders.sh | 1 + mealie/rootfs/etc/cont-init.d/31-nginx.sh | 1 + mealie/rootfs/run.txt | 1 + nextcloud/rootfs/defaults/nextcloud-perms.sh | 1 + nextcloud/rootfs/etc/cont-init.d/01-folders.sh | 1 + nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh | 1 + nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh | 1 + nextcloud/rootfs/etc/cont-init.d/30-ssl.sh | 1 + nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh | 1 + nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh | 1 + nextcloud/rootfs/etc/cont-init.d/99-ocr.sh | 1 + nextcloud/rootfs/etc/cont-init.d/99-trusted_domains.sh | 1 + nzbget/rootfs/etc/cont-init.d/20-folders.sh | 1 + nzbget/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + nzbget/rootfs/etc/services.d/nginx/run | 1 + omada/rootfs/etc/cont-init.d/00-folders.sh | 1 + omada_v3/rootfs/etc/cont-init.d/00-folders.sh | 1 + ombi/rootfs/etc/cont-init.d/20-folders.sh | 1 + organizr/rootfs/etc/cont-init.d/00-folders.sh | 1 + overseerr/rootfs/etc/cont-init.d/00-config_location.sh | 1 + paperless_ngx/rootfs/etc/cont-init.d/20-folders.sh | 1 + paperless_ngx/rootfs/etc/cont-init.d/31-nginx.sh | 1 + paperless_ngx/rootfs/etc/cont-init.d/99-run.sh | 1 + papermerge/rootfs/etc/cont-init.d/00-folders.sh | 1 + papermerge/rootfs/etc/cont-init.d/91-OCR.sh | 1 + papermerge/rootfs/etc/cont-init.d/99-configuration.sh | 1 + photoprism/rootfs/etc/cont-init.d/00-folders.sh | 1 + photoprism/rootfs/etc/cont-init.d/30-graphic_drivers.sh | 1 + photoprism/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + photoprism/rootfs/etc/cont-init.d/32-nginx_ssl.sh | 1 + photoprism/rootfs/etc/cont-init.d/99-run.sh | 1 + photoprism/rootfs/run.sh | 1 + piwigo/rootfs/etc/s6-overlay/s6-rc.d/init-alexbelgium/run | 1 + plex/rootfs/etc/cont-init.d/21-folders.sh | 1 + .../rootfs/etc/cont-init.d/20-configuration.sh | 1 + .../rootfs/etc/cont-init.d/00-aaa_portainer_install.sh | 1 + portainer/rootfs/etc/cont-init.d/30-nginx.sh | 1 + portainer/rootfs/etc/cont-init.d/portainer.sh | 1 + portainer/rootfs/etc/services.d/nginx/run | 1 + portainer/rootfs/etc/services.d/portainer/run | 1 + portainer_agent/rootfs/etc/services.d/portainer_agent/run | 1 + postgres/rootfs/etc/cont-init.d/20-folders.sh | 1 + postgres/rootfs/etc/cont-init.d/99-run.sh | 1 + qbittorrent/rootfs/etc/cont-init.d/30-nginx.sh | 1 + .../rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh | 1 + qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 1 + qbittorrent/rootfs/etc/openvpn/up-qbittorrent.sh | 1 + .../rootfs/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run | 1 + qbittorrent/rootfs/etc/services.d/nginx/run | 5 +++-- qbittorrent/rootfs/etc/services.d/timer/run | 3 ++- radarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + radarr/rootfs/etc/services.d/nginx/run | 1 + readarr/rootfs/etc/cont-init.d/00-config_location.sh | 1 + readarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + readarr/rootfs/etc/services.d/nginx/run | 1 + resiliosync/rootfs/etc/cont-init.d/00-folders.sh | 1 + resiliosync/rootfs/etc/cont-init.d/90-ingress.sh | 1 + resiliosync/rootfs/etc/services.d/nginx/run | 1 + sabnzbd/rootfs/etc/cont-init.d/20-folders.sh | 1 + sabnzbd/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + scrutiny/rootfs/etc/cont-init.d/01-configuration.sh | 1 + scrutiny/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + scrutiny/rootfs/etc/cont-init.d/90-run.sh | 1 + scrutiny/rootfs/etc/services.d/nginx/run | 1 + scrutiny_fa/rootfs/etc/cont-init.d/01-configuration.sh | 1 + scrutiny_fa/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh | 1 + scrutiny_fa/rootfs/etc/services.d/nginx/run | 1 + seafile/rootfs/etc/cont-init.d/99-run.sh | 1 + sonarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + sonarr/rootfs/etc/services.d/nginx/run | 1 + sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh | 1 + spotweb/rootfs/etc/cont-init.d/90-spotweb | 1 + spotweb/rootfs/etc/periodic/daily/check-cache | 1 + spotweb/rootfs/etc/periodic/hourly/spotweb | 1 + spotweb/rootfs/etc/services.d/nginx/run | 1 + spotweb/rootfs/etc/services.d/phpfpm/run | 1 + tandoor_recipes/rootfs/etc/cont-init.d/20-folders.sh | 1 + tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh | 1 + tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh | 1 + tdarr/rootfs/etc/cont-init.d/00-configuration.sh | 1 + teamspeak/rootfs/etc/cont-init.d/20-folders.sh | 1 + teamspeak/rootfs/etc/services.d/logs.sh | 1 + transmission/rootfs/etc/cont-init.d/01-config.sh | 1 + transmission/rootfs/etc/cont-init.d/19-json_repair.sh | 1 + transmission/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + transmission/rootfs/etc/cont-init.d/90-customUI.sh | 1 + transmission/rootfs/etc/services.d/nginx/run | 1 + .../rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + transmission_openvpn/rootfs/usr/bin/restart_addon | 1 + ubooquity/rootfs/etc/32-nginx_ingress.sh | 1 + ubooquity/rootfs/etc/cont-init.d/00-folders.sh | 1 + ubooquity/rootfs/etc/cont-init.d/32-nginx_ssl.sh | 1 + ubooquity/rootfs/etc/cont-init.d/91-configuration.sh | 1 + ubooquity/rootfs/etc/cont-init.d/93-custom_webUI.sh | 1 + ubooquity/rootfs/etc/services.d/nginx/run | 1 + webtop_kde/rootfs/etc/cont-init.d/20-folders.sh | 1 + webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh | 1 + webtop_kde/rootfs/etc/cont-init.d/90-ingress.sh | 1 + webtrees/rootfs/etc/cont-init.d/99-run.sh | 1 + whoogle/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 1 + zoneminder/rootfs/etc/cont-init.d/00-folders.sh | 1 + zoneminder/rootfs/etc/cont-init.d/99-run.sh | 1 + 186 files changed, 194 insertions(+), 8 deletions(-) diff --git a/.templates/00-aaa_dockerfile_backup.sh b/.templates/00-aaa_dockerfile_backup.sh index 50e5282ae..576120b69 100755 --- a/.templates/00-aaa_dockerfile_backup.sh +++ b/.templates/00-aaa_dockerfile_backup.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # If dockerfile failed install manually diff --git a/.templates/00-banner.sh b/.templates/00-banner.sh index 1493e42c6..0ad71a712 100755 --- a/.templates/00-banner.sh +++ b/.templates/00-banner.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Displays a simple add-on banner on startup # ============================================================================== diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 2d05572ac..f4dc23241 100755 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################################### # Export all addon options as env # diff --git a/.templates/00-local_mounts.sh b/.templates/00-local_mounts.sh index 580f3d138..1d6d0ea62 100755 --- a/.templates/00-local_mounts.sh +++ b/.templates/00-local_mounts.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ###################### # MOUNT LOCAL SHARES # diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index ea85977ff..af25b24da 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable= #################### @@ -20,7 +21,7 @@ if bashio::config.has_value 'networkdisks'; then #################### # Define variables # #################### - + # Set variables MOREDISKS=$(bashio::config 'networkdisks') USERNAME=$(bashio::config 'cifsusername') @@ -57,7 +58,7 @@ if bashio::config.has_value 'networkdisks'; then ################## # Mounting disks # ################## - + # shellcheck disable=SC2086 for disk in ${MOREDISKS//,/ }; do # Separate comma separated values @@ -145,7 +146,7 @@ if bashio::config.has_value 'networkdisks'; then && MOUNTED=true && MOUNTOPTIONS="$SMBVERS$SECVERS$PUIDPGID$CHARSET$DOMAIN" || MOUNTED=false fi done - + fi # Messages diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index c713713f2..99e56a58a 100755 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e slug="${HOSTNAME#*-}" bashio::log.info "Execute /config/addons_autoscripts/${slug}.sh if existing" diff --git a/.templates/19-json_repair.sh b/.templates/19-json_repair.sh index 96f3e88a0..c2db5d9bc 100755 --- a/.templates/19-json_repair.sh +++ b/.templates/19-json_repair.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellchek disable=SC2015 JSONTOCHECK='/config/transmission/settings.json' diff --git a/.templates/90-config_yaml.sh b/.templates/90-config_yaml.sh index b89b0e1f5..3f0d57c53 100755 --- a/.templates/90-config_yaml.sh +++ b/.templates/90-config_yaml.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155,SC1087,SC2163,SC2116,SC2086 ################## diff --git a/.templates/90-disable_ingress.sh b/.templates/90-disable_ingress.sh index 260bf76c9..a0be50b7f 100755 --- a/.templates/90-disable_ingress.sh +++ b/.templates/90-disable_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Disables ingress and sets a default index diff --git a/.templates/90-dns_set.sh b/.templates/90-dns_set.sh index 1a7eb7ed9..157dd4666 100755 --- a/.templates/90-dns_set.sh +++ b/.templates/90-dns_set.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ############### # DNS SETTING # diff --git a/.templates/91-silent.sh b/.templates/91-silent.sh index c2ba4e49c..ce3653715 100755 --- a/.templates/91-silent.sh +++ b/.templates/91-silent.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ############### # SILENT MODE # diff --git a/.templates/91-universal_graphic_drivers.sh b/.templates/91-universal_graphic_drivers.sh index 52ef366c6..bb54f0569 100755 --- a/.templates/91-universal_graphic_drivers.sh +++ b/.templates/91-universal_graphic_drivers.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +set -e if bashio::config.has_value "graphic_driver"; then diff --git a/.templates/99-custom_script.sh b/.templates/99-custom_script.sh index 5ba4e28c9..c3c8bce45 100755 --- a/.templates/99-custom_script.sh +++ b/.templates/99-custom_script.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") CONFIGSOURCE="$(dirname "${CONFIGSOURCE}")" diff --git a/.templates/ha_autoapps.sh b/.templates/ha_autoapps.sh index ab42ae59e..05bfecfc9 100755 --- a/.templates/ha_autoapps.sh +++ b/.templates/ha_autoapps.sh @@ -1,5 +1,6 @@ #!/bin/sh # shellcheck disable=SC2015 +set -e ############################## # Automatic apps download # diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index 558a2b521..384966991 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ######## # INIT # diff --git a/.templates/ha_automodules.sh b/.templates/ha_automodules.sh index 675695069..8b50bd298 100755 --- a/.templates/ha_automodules.sh +++ b/.templates/ha_automodules.sh @@ -1,5 +1,6 @@ #!/bin/sh # shellcheck disable=SC2015 +set -e ############################## # Automatic modules download # diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index 7170b516b..60d7ee1a0 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -1,5 +1,6 @@ #!/command/with-contenv bashio # shellcheck shell=bash +set -e echo "Starting..." #################### diff --git a/.templates/ha_entrypoint_modif.sh b/.templates/ha_entrypoint_modif.sh index 8c5b73259..ea18f243a 100755 --- a/.templates/ha_entrypoint_modif.sh +++ b/.templates/ha_entrypoint_modif.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e ########################################## # Global modifications before entrypoint # diff --git a/.templates/ha_lsio.sh b/.templates/ha_lsio.sh index 2f0e310eb..61d2d82aa 100755 --- a/.templates/ha_lsio.sh +++ b/.templates/ha_lsio.sh @@ -1,5 +1,6 @@ #!/bin/sh # shellcheck disable=SC2013,SC2016,SC2236 +set -e ############################# # Modify global lsio images # diff --git a/addons_updater/rootfs/etc/cont-init.d/99-run.sh b/addons_updater/rootfs/etc/cont-init.d/99-run.sh index 1978e8f2f..96b9160b1 100755 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ########## # UPDATE # @@ -129,7 +130,7 @@ for f in */; do jq '.results | .[] | .name' -r | sed -e '/.*latest.*/d' | sed -e '/.*dev.*/!d' | - sed -e "/.*$EXCLUDE_TEXT.*/d" | + sed -e "/.*$EXCLUDE_TEXT.*/d" | sort -V | tail -n 1 ) @@ -140,7 +141,7 @@ for f in */; do sed -e '/.*latest.*/d' | sed -e '/.*dev.*/d' | sed -e '/.*nightly.*/d' | - sed -e "/.*$EXCLUDE_TEXT.*/d" | + sed -e "/.*$EXCLUDE_TEXT.*/d" | sort -V | tail -n 1 ) && \ diff --git a/arpspoof/rootfs/etc/cont-init.d/99-run.sh b/arpspoof/rootfs/etc/cont-init.d/99-run.sh index b44992d0f..9e054207b 100755 --- a/arpspoof/rootfs/etc/cont-init.d/99-run.sh +++ b/arpspoof/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # Avoid unbound variables set +u diff --git a/autobrr/rootfs/etc/cont-init.d/20-folders.sh b/autobrr/rootfs/etc/cont-init.d/20-folders.sh index dd9e0253f..7d2e64d49 100755 --- a/autobrr/rootfs/etc/cont-init.d/20-folders.sh +++ b/autobrr/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if [ ! -d /data/autobrr ]; then echo "Creating /data/autobrr" diff --git a/autobrr/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/autobrr/rootfs/etc/cont-init.d/32-nginx_ingress.sh index 599020efe..8ed121b7a 100755 --- a/autobrr/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/autobrr/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/autobrr/rootfs/etc/cont-init.d/91-run.sh b/autobrr/rootfs/etc/cont-init.d/91-run.sh index d80a5e1ef..353441ef2 100755 --- a/autobrr/rootfs/etc/cont-init.d/91-run.sh +++ b/autobrr/rootfs/etc/cont-init.d/91-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ############### # Start nginx # diff --git a/binance-trading-bot/rootfs/etc/cont-init.d/20-folders.sh b/binance-trading-bot/rootfs/etc/cont-init.d/20-folders.sh index 5ea416f2c..dcf5ff0f9 100755 --- a/binance-trading-bot/rootfs/etc/cont-init.d/20-folders.sh +++ b/binance-trading-bot/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if [ -d /config/binance-trading-bot ]; then echo "Moving to new location /config/addons_config/binance-trading-bot" diff --git a/binance-trading-bot/rootfs/etc/cont-init.d/32-ingress.sh b/binance-trading-bot/rootfs/etc/cont-init.d/32-ingress.sh index 5628d4868..9fd0e7e11 100755 --- a/binance-trading-bot/rootfs/etc/cont-init.d/32-ingress.sh +++ b/binance-trading-bot/rootfs/etc/cont-init.d/32-ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh b/binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh index 892a8b77b..9d5e62376 100755 --- a/binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh +++ b/binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ############## # Export env # diff --git a/bitwarden/rootfs/etc/cont-init.d/nginx.sh b/bitwarden/rootfs/etc/cont-init.d/nginx.sh index aa680976a..0ce2350b6 100755 --- a/bitwarden/rootfs/etc/cont-init.d/nginx.sh +++ b/bitwarden/rootfs/etc/cont-init.d/nginx.sh @@ -1,5 +1,6 @@ #!/command/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Home Assistant Community Add-on: Bitwarden # This file configures nginx diff --git a/bitwarden/rootfs/etc/services.d/bitwarden/run b/bitwarden/rootfs/etc/services.d/bitwarden/run index 88f88c899..fcce78536 100644 --- a/bitwarden/rootfs/etc/services.d/bitwarden/run +++ b/bitwarden/rootfs/etc/services.d/bitwarden/run @@ -1,5 +1,6 @@ #!/command/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Home Assistant Community Add-on: Bitwarden # Runs the Vaultwarden server diff --git a/bitwarden/rootfs/etc/services.d/nginx/run b/bitwarden/rootfs/etc/services.d/nginx/run index c9b0b9dc7..17171a50c 100644 --- a/bitwarden/rootfs/etc/services.d/nginx/run +++ b/bitwarden/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Home Assistant Community Add-on: Bitwarden # Runs the Nginx daemon diff --git a/calibre/rootfs/etc/cont-init.d/20-folders.sh b/calibre/rootfs/etc/cont-init.d/20-folders.sh index 4c48465e5..3c5ee72db 100755 --- a/calibre/rootfs/etc/cont-init.d/20-folders.sh +++ b/calibre/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2046 # Define user diff --git a/calibre/rootfs/etc/cont-init.d/80-configuration.sh b/calibre/rootfs/etc/cont-init.d/80-configuration.sh index b71b9fbdb..c88298e56 100755 --- a/calibre/rootfs/etc/cont-init.d/80-configuration.sh +++ b/calibre/rootfs/etc/cont-init.d/80-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2015 # Install specific apps diff --git a/calibre/rootfs/etc/cont-init.d/90-ingress.sh b/calibre/rootfs/etc/cont-init.d/90-ingress.sh index b1052829a..799f9c0c1 100755 --- a/calibre/rootfs/etc/cont-init.d/90-ingress.sh +++ b/calibre/rootfs/etc/cont-init.d/90-ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # nginx Path NGINX_CONFIG=/etc/nginx/sites-available/ingress.conf diff --git a/calibre_web/rootfs/etc/cont-init.d/00-data_location.sh b/calibre_web/rootfs/etc/cont-init.d/00-data_location.sh index 2c35b16c7..25757af97 100755 --- a/calibre_web/rootfs/etc/cont-init.d/00-data_location.sh +++ b/calibre_web/rootfs/etc/cont-init.d/00-data_location.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Define user PUID=$(bashio::config "PUID") diff --git a/calibre_web/rootfs/etc/cont-init.d/32-nginx.sh b/calibre_web/rootfs/etc/cont-init.d/32-nginx.sh index 0ef42f45e..69a4bd22b 100755 --- a/calibre_web/rootfs/etc/cont-init.d/32-nginx.sh +++ b/calibre_web/rootfs/etc/cont-init.d/32-nginx.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/calibre_web/rootfs/etc/cont-init.d/80-configuration.sh b/calibre_web/rootfs/etc/cont-init.d/80-configuration.sh index cb7d00a7e..1392f047f 100755 --- a/calibre_web/rootfs/etc/cont-init.d/80-configuration.sh +++ b/calibre_web/rootfs/etc/cont-init.d/80-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2015 # Set TZ diff --git a/calibre_web/rootfs/etc/services.d/nginx/run b/calibre_web/rootfs/etc/services.d/nginx/run index ef9d56f06..a94fdff3f 100644 --- a/calibre_web/rootfs/etc/services.d/nginx/run +++ b/calibre_web/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/changedetection.io/rootfs/etc/cont-init.d/21-folders.sh b/changedetection.io/rootfs/etc/cont-init.d/21-folders.sh index 5f12c568c..4ed99bf59 100755 --- a/changedetection.io/rootfs/etc/cont-init.d/21-folders.sh +++ b/changedetection.io/rootfs/etc/cont-init.d/21-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Define user PUID=$(bashio::config "PUID") diff --git a/cloudcommander/rootfs/etc/cont-init.d/99-run.sh b/cloudcommander/rootfs/etc/cont-init.d/99-run.sh index 0b0fee452..9acd3bf9d 100755 --- a/cloudcommander/rootfs/etc/cont-init.d/99-run.sh +++ b/cloudcommander/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/emby/rootfs/etc/cont-init.d/20-folders.sh b/emby/rootfs/etc/cont-init.d/20-folders.sh index e4f19bbf8..86353b89a 100755 --- a/emby/rootfs/etc/cont-init.d/20-folders.sh +++ b/emby/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e bashio::log.info "Updating folder structure and permission" diff --git a/emby/rootfs/etc/cont-init.d/32-nginx.sh b/emby/rootfs/etc/cont-init.d/32-nginx.sh index af5d656c2..732575c51 100755 --- a/emby/rootfs/etc/cont-init.d/32-nginx.sh +++ b/emby/rootfs/etc/cont-init.d/32-nginx.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/emby/rootfs/etc/cont-init.d/91-silent.sh b/emby/rootfs/etc/cont-init.d/91-silent.sh index 9aefe835f..d9d6c4a86 100755 --- a/emby/rootfs/etc/cont-init.d/91-silent.sh +++ b/emby/rootfs/etc/cont-init.d/91-silent.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ############### # SILENT MODE # diff --git a/emby/rootfs/etc/services.d/nginx/run b/emby/rootfs/etc/services.d/nginx/run index 0ad7ff230..e01a4fa99 100644 --- a/emby/rootfs/etc/services.d/nginx/run +++ b/emby/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for app to become available diff --git a/enedisgateway2mqtt/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/enedisgateway2mqtt/rootfs/etc/cont-init.d/32-nginx_ingress.sh index f307cd7af..63565d615 100755 --- a/enedisgateway2mqtt/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/enedisgateway2mqtt/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/enedisgateway2mqtt/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh b/enedisgateway2mqtt/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh index 45403d64c..f3a36adc3 100755 --- a/enedisgateway2mqtt/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh +++ b/enedisgateway2mqtt/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155 ##################### diff --git a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh index ae7548a44..fde70b04c 100755 --- a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ################## # INITIALIZATION # diff --git a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/32-nginx_ingress.sh index f307cd7af..63565d615 100755 --- a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh index 45403d64c..f3a36adc3 100755 --- a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh +++ b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/91-mqtt_autodiscover.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155 ##################### diff --git a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh index ae7548a44..fde70b04c 100755 --- a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ################## # INITIALIZATION # diff --git a/epicgamesfree/rootfs/etc/cont-init.d/20-folders.sh b/epicgamesfree/rootfs/etc/cont-init.d/20-folders.sh index 28d8f6849..74dd48216 100755 --- a/epicgamesfree/rootfs/etc/cont-init.d/20-folders.sh +++ b/epicgamesfree/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Define home HOME="/config/addons_config/epicgamesfree" diff --git a/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh b/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh index f286874c6..ab37fd9e5 100755 --- a/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh +++ b/epicgamesfree/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ############## # Initialize # diff --git a/filebrowser/rootfs/etc/cont-init.d/20-folders.sh b/filebrowser/rootfs/etc/cont-init.d/20-folders.sh index 9bab0da74..dcd489acf 100755 --- a/filebrowser/rootfs/etc/cont-init.d/20-folders.sh +++ b/filebrowser/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if [ -d /config/filebrowser ]; then echo "Moving to new location /config/addons_config/filebrowser" diff --git a/filebrowser/rootfs/etc/cont-init.d/99-run.sh b/filebrowser/rootfs/etc/cont-init.d/99-run.sh index 1594c9be6..2192e7d39 100755 --- a/filebrowser/rootfs/etc/cont-init.d/99-run.sh +++ b/filebrowser/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ############ # TIMEZONE # diff --git a/fireflyiii/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii/rootfs/etc/cont-init.d/99-run.sh index 9ae50138d..d0f36463c 100755 --- a/fireflyiii/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # hadolint ignore=SC2155 ######## diff --git a/fireflyiii/rootfs/templates/cronupdate b/fireflyiii/rootfs/templates/cronupdate index a9dafa642..9c69d6bec 100644 --- a/fireflyiii/rootfs/templates/cronupdate +++ b/fireflyiii/rootfs/templates/cronupdate @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ( bashio::log.info "Running update according to defined schedule" diff --git a/fireflyiii_data_importer/rootfs/etc/cont-init.d/20-folders.sh b/fireflyiii_data_importer/rootfs/etc/cont-init.d/20-folders.sh index e2ec4c044..1fd26dc69 100755 --- a/fireflyiii_data_importer/rootfs/etc/cont-init.d/20-folders.sh +++ b/fireflyiii_data_importer/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") CONFIGSOURCE=$(dirname "$CONFIGSOURCE") diff --git a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh index 4398f8808..7b65392eb 100755 --- a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") CONFIGSOURCE="$(dirname "$CONFIGSOURCE")" diff --git a/fireflyiii_data_importer/rootfs/templates/cronupdate b/fireflyiii_data_importer/rootfs/templates/cronupdate index 95ca759c2..d98f73ece 100644 --- a/fireflyiii_data_importer/rootfs/templates/cronupdate +++ b/fireflyiii_data_importer/rootfs/templates/cronupdate @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e PATHTOFILES="$(bashio::config "CONFIG_LOCATION")" PATHTOFILES="$(dirname "${PATHTOFILES}")" diff --git a/fireflyiii_fints_importer/rootfs/etc/cont-init.d/20-folders.sh b/fireflyiii_fints_importer/rootfs/etc/cont-init.d/20-folders.sh index fa3296537..a272ca21f 100755 --- a/fireflyiii_fints_importer/rootfs/etc/cont-init.d/20-folders.sh +++ b/fireflyiii_fints_importer/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e CONFIGSOURCE="/config/addons_config/fireflyiii_fints_importer" diff --git a/fireflyiii_fints_importer/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii_fints_importer/rootfs/etc/cont-init.d/99-run.sh index 4626c45c4..aa842d28f 100755 --- a/fireflyiii_fints_importer/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii_fints_importer/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e CONFIGSOURCE="/config/addons_config/fireflyiii_fints_importer" diff --git a/fireflyiii_fints_importer/rootfs/templates/cronupdate b/fireflyiii_fints_importer/rootfs/templates/cronupdate index c86170d26..7d1bdcaa0 100644 --- a/fireflyiii_fints_importer/rootfs/templates/cronupdate +++ b/fireflyiii_fints_importer/rootfs/templates/cronupdate @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e PATHTOFILES="$(bashio::config "CONFIG_LOCATION")" PATHTOFILES="$(dirname "${PATHTOFILES}")" diff --git a/flaresolverr/rootfs/etc/cont-init.d/99-run.sh b/flaresolverr/rootfs/etc/cont-init.d/99-run.sh index 952b61385..45db9cf5e 100755 --- a/flaresolverr/rootfs/etc/cont-init.d/99-run.sh +++ b/flaresolverr/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e bashio::log.warning "Warning - minimum configuration recommended : 2 cpu cores and 4 GB of memory. Otherwise the system will become unresponsive and crash." diff --git a/flexget/rootfs/etc/cont-init.d/00-folders.sh b/flexget/rootfs/etc/cont-init.d/00-folders.sh index 71e0396fd..e17be913a 100755 --- a/flexget/rootfs/etc/cont-init.d/00-folders.sh +++ b/flexget/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e slug=flexget diff --git a/free_games_claimer/rootfs/etc/cont-init.d/20-folders.sh b/free_games_claimer/rootfs/etc/cont-init.d/20-folders.sh index f7ec9eaf2..396a0ebb1 100755 --- a/free_games_claimer/rootfs/etc/cont-init.d/20-folders.sh +++ b/free_games_claimer/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Define home # Creating config location diff --git a/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh b/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh index 30f878883..c5d50c88c 100755 --- a/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh +++ b/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ############## # Initialize # diff --git a/gazpar2mqtt/rootfs/etc/cont-init.d/89-mqtt_autodiscover.sh b/gazpar2mqtt/rootfs/etc/cont-init.d/89-mqtt_autodiscover.sh index bdc1df720..9e260a479 100755 --- a/gazpar2mqtt/rootfs/etc/cont-init.d/89-mqtt_autodiscover.sh +++ b/gazpar2mqtt/rootfs/etc/cont-init.d/89-mqtt_autodiscover.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ##################### # Autodiscover mqtt # diff --git a/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh b/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh index 152e0e735..8ac079794 100755 --- a/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh +++ b/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ############## # Launch App # diff --git a/gitea/rootfs/etc/cont-init.d/99-run.sh b/gitea/rootfs/etc/cont-init.d/99-run.sh index 93386e6bd..320107f2c 100755 --- a/gitea/rootfs/etc/cont-init.d/99-run.sh +++ b/gitea/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e for file in /data/gitea/conf/app.ini /etc/templates/app.ini; do diff --git a/grav/rootfs/etc/cont-init.d/20-folders.sh b/grav/rootfs/etc/cont-init.d/20-folders.sh index a47f021b9..0f8c23790 100755 --- a/grav/rootfs/etc/cont-init.d/20-folders.sh +++ b/grav/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e echo "Updating folders..." diff --git a/guacamole/rootfs/etc/cont-init.d/50-folders.sh b/guacamole/rootfs/etc/cont-init.d/50-folders.sh index 25b62dc3d..68c2ab5db 100755 --- a/guacamole/rootfs/etc/cont-init.d/50-folders.sh +++ b/guacamole/rootfs/etc/cont-init.d/50-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e mkdir -p /config/addons_config/guacamole/fonts mkdir -p /config/addons_config/guacamole/postgres diff --git a/guacamole/rootfs/etc/cont-init.d/90-ingress.sh b/guacamole/rootfs/etc/cont-init.d/90-ingress.sh index 739336068..e72bdc2e7 100755 --- a/guacamole/rootfs/etc/cont-init.d/90-ingress.sh +++ b/guacamole/rootfs/etc/cont-init.d/90-ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/guacamole/rootfs/etc/services.d/nginx/run b/guacamole/rootfs/etc/services.d/nginx/run index 07447d8b8..623775fc4 100644 --- a/guacamole/rootfs/etc/services.d/nginx/run +++ b/guacamole/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/immich/rootfs/etc/cont-init.d/20-folders.sh b/immich/rootfs/etc/cont-init.d/20-folders.sh index e2fa65b3e..743f0add7 100755 --- a/immich/rootfs/etc/cont-init.d/20-folders.sh +++ b/immich/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # DATA_LOCATION # diff --git a/immich/rootfs/etc/cont-init.d/99-run.sh b/immich/rootfs/etc/cont-init.d/99-run.sh index 7d15352a4..2bc9b1122 100755 --- a/immich/rootfs/etc/cont-init.d/99-run.sh +++ b/immich/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155,SC2016 ################################### diff --git a/inadyn/rootfs/etc/cont-init.d/99-run.sh b/inadyn/rootfs/etc/cont-init.d/99-run.sh index 9c25e9b3b..b31b8ac4c 100755 --- a/inadyn/rootfs/etc/cont-init.d/99-run.sh +++ b/inadyn/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ################# # Create config # diff --git a/jellyfin/rootfs/etc/cont-init.d/20-folders.sh b/jellyfin/rootfs/etc/cont-init.d/20-folders.sh index fcbed841f..6b54b56c0 100755 --- a/jellyfin/rootfs/etc/cont-init.d/20-folders.sh +++ b/jellyfin/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e LOCATION=$(bashio::config 'data_location') diff --git a/jellyfin/rootfs/etc/cont-init.d/32-ingress.sh b/jellyfin/rootfs/etc/cont-init.d/32-ingress.sh index 17c38bdbd..00e80f046 100755 --- a/jellyfin/rootfs/etc/cont-init.d/32-ingress.sh +++ b/jellyfin/rootfs/etc/cont-init.d/32-ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh b/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh index 20dcc34ed..e0c35c212 100755 --- a/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh +++ b/jellyfin/rootfs/etc/cont-init.d/90-data_location.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Define user PUID=$(bashio::config "PUID") diff --git a/jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh b/jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh index 99b676903..c0fd77134 100755 --- a/jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh +++ b/jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e #Set variable db=%%LOCATION%%/data/data/library.db diff --git a/jellyfin/rootfs/etc/services.d/nginx/run b/jellyfin/rootfs/etc/services.d/nginx/run index 5a6a4f92e..09b0f895c 100644 --- a/jellyfin/rootfs/etc/services.d/nginx/run +++ b/jellyfin/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/jellyseerr/rootfs/etc/cont-init.d/90-run.sh b/jellyseerr/rootfs/etc/cont-init.d/90-run.sh index 103592501..8986fe6f2 100755 --- a/jellyseerr/rootfs/etc/cont-init.d/90-run.sh +++ b/jellyseerr/rootfs/etc/cont-init.d/90-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Create files CONFIG_LOCATION="/config/addons_config/jellyseer" diff --git a/joal/rootfs/etc/cont-init.d/99-run.sh b/joal/rootfs/etc/cont-init.d/99-run.sh index c2d0387eb..c6eb4fc73 100755 --- a/joal/rootfs/etc/cont-init.d/99-run.sh +++ b/joal/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e ################ # JOAL SETTING # diff --git a/joplin/rootfs/etc/cont-init.d/99-run.sh b/joplin/rootfs/etc/cont-init.d/99-run.sh index 7eeaf0c22..6b3566ecb 100755 --- a/joplin/rootfs/etc/cont-init.d/99-run.sh +++ b/joplin/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155 bashio::log.warning "Warning - minimum configuration recommended : 2 cpu cores and 4 GB of memory. Otherwise the system will become unresponsive and crash." diff --git a/lidarr/rootfs/etc/cont-init.d/20-folders.sh b/lidarr/rootfs/etc/cont-init.d/20-folders.sh index 376488a07..6fe943bd1 100755 --- a/lidarr/rootfs/etc/cont-init.d/20-folders.sh +++ b/lidarr/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if [ ! -d /share/music ]; then echo "Creating /share/music" diff --git a/mealie/rootfs/etc/cont-init.d/31-nginx.sh b/mealie/rootfs/etc/cont-init.d/31-nginx.sh index f24088241..1fef16a28 100755 --- a/mealie/rootfs/etc/cont-init.d/31-nginx.sh +++ b/mealie/rootfs/etc/cont-init.d/31-nginx.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if bashio::config.true 'ssl'; then diff --git a/mealie/rootfs/run.txt b/mealie/rootfs/run.txt index 76959e425..f08178b0d 100644 --- a/mealie/rootfs/run.txt +++ b/mealie/rootfs/run.txt @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e if [ ! -f /started ]; then diff --git a/nextcloud/rootfs/defaults/nextcloud-perms.sh b/nextcloud/rootfs/defaults/nextcloud-perms.sh index 1ddc6cfd8..09a86cb6e 100755 --- a/nextcloud/rootfs/defaults/nextcloud-perms.sh +++ b/nextcloud/rootfs/defaults/nextcloud-perms.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e #################################### # Clean nginx files at each reboot # diff --git a/nextcloud/rootfs/etc/cont-init.d/01-folders.sh b/nextcloud/rootfs/etc/cont-init.d/01-folders.sh index 4eab8db49..f27d15844 100755 --- a/nextcloud/rootfs/etc/cont-init.d/01-folders.sh +++ b/nextcloud/rootfs/etc/cont-init.d/01-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then PUID="$(bashio::config "PUID")" diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index 902078a41..9e807bba7 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Runs only after initialization done # shellcheck disable=SC2128 diff --git a/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh b/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh index 77e1a65ee..6539027a5 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-mariadb_discovery.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Runs only after initialization done # shellcheck disable=SC2128 diff --git a/nextcloud/rootfs/etc/cont-init.d/30-ssl.sh b/nextcloud/rootfs/etc/cont-init.d/30-ssl.sh index 9c76a590b..8f6abcbed 100755 --- a/nextcloud/rootfs/etc/cont-init.d/30-ssl.sh +++ b/nextcloud/rootfs/etc/cont-init.d/30-ssl.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if bashio::config.true 'use_own_certs'; then diff --git a/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh b/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh index eb7945fa4..13c934ef0 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Runs only after initialization done # shellcheck disable=SC2128 diff --git a/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh b/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh index c1110d64d..3d2c80fe8 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-elasticsearch.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2086 # Runs only after initialization done diff --git a/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh b/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh index d090c8f1e..7407cf7de 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Runs only after initialization done # shellcheck disable=SC2128 diff --git a/nextcloud/rootfs/etc/cont-init.d/99-trusted_domains.sh b/nextcloud/rootfs/etc/cont-init.d/99-trusted_domains.sh index d788b0925..4d7a05f5d 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-trusted_domains.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-trusted_domains.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Runs only after initialization done # shellcheck disable=SC2128 diff --git a/nzbget/rootfs/etc/cont-init.d/20-folders.sh b/nzbget/rootfs/etc/cont-init.d/20-folders.sh index 287c42782..5846dd7a6 100755 --- a/nzbget/rootfs/etc/cont-init.d/20-folders.sh +++ b/nzbget/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e slug=nzbget diff --git a/nzbget/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/nzbget/rootfs/etc/cont-init.d/32-nginx_ingress.sh index d56e386db..2d340480c 100755 --- a/nzbget/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/nzbget/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/nzbget/rootfs/etc/services.d/nginx/run b/nzbget/rootfs/etc/services.d/nginx/run index 153d969a2..af9af2170 100644 --- a/nzbget/rootfs/etc/services.d/nginx/run +++ b/nzbget/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/omada/rootfs/etc/cont-init.d/00-folders.sh b/omada/rootfs/etc/cont-init.d/00-folders.sh index fb299cb7c..66f2d99cc 100755 --- a/omada/rootfs/etc/cont-init.d/00-folders.sh +++ b/omada/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/bin/bash # shellcheck shell=bash +set -e CONFIGSOURCE="/data" diff --git a/omada_v3/rootfs/etc/cont-init.d/00-folders.sh b/omada_v3/rootfs/etc/cont-init.d/00-folders.sh index b76ab0c99..99d42e923 100755 --- a/omada_v3/rootfs/etc/cont-init.d/00-folders.sh +++ b/omada_v3/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/bin/bash # shellcheck shell=bash +set -e CONFIGSOURCE="/data" diff --git a/ombi/rootfs/etc/cont-init.d/20-folders.sh b/ombi/rootfs/etc/cont-init.d/20-folders.sh index 30190a685..5a3d3b070 100755 --- a/ombi/rootfs/etc/cont-init.d/20-folders.sh +++ b/ombi/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e slug=ombi diff --git a/organizr/rootfs/etc/cont-init.d/00-folders.sh b/organizr/rootfs/etc/cont-init.d/00-folders.sh index 943936202..c293ce6cb 100755 --- a/organizr/rootfs/etc/cont-init.d/00-folders.sh +++ b/organizr/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if [ ! -d /data/organizr ]; then echo "Creating /data/organizr" diff --git a/overseerr/rootfs/etc/cont-init.d/00-config_location.sh b/overseerr/rootfs/etc/cont-init.d/00-config_location.sh index 51916ec4a..12e914b54 100755 --- a/overseerr/rootfs/etc/cont-init.d/00-config_location.sh +++ b/overseerr/rootfs/etc/cont-init.d/00-config_location.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION') bashio::log.info "Config stored in $CONFIG_LOCATION" diff --git a/paperless_ngx/rootfs/etc/cont-init.d/20-folders.sh b/paperless_ngx/rootfs/etc/cont-init.d/20-folders.sh index 8cedd1b6b..599a34cb8 100755 --- a/paperless_ngx/rootfs/etc/cont-init.d/20-folders.sh +++ b/paperless_ngx/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e slug=paperless_ng diff --git a/paperless_ngx/rootfs/etc/cont-init.d/31-nginx.sh b/paperless_ngx/rootfs/etc/cont-init.d/31-nginx.sh index e2dc0cae1..cd8464e2c 100755 --- a/paperless_ngx/rootfs/etc/cont-init.d/31-nginx.sh +++ b/paperless_ngx/rootfs/etc/cont-init.d/31-nginx.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if bashio::config.true 'ssl'; then # Validate ssl diff --git a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh index f6327dacc..856d35d33 100755 --- a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh +++ b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155 #################### diff --git a/papermerge/rootfs/etc/cont-init.d/00-folders.sh b/papermerge/rootfs/etc/cont-init.d/00-folders.sh index f9fbf4494..adc494c16 100755 --- a/papermerge/rootfs/etc/cont-init.d/00-folders.sh +++ b/papermerge/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Config location CONFIGLOCATION="$(bashio::config 'CONFIG_LOCATION')" diff --git a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh index 6da3dce38..9a85f1833 100755 --- a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh +++ b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Allow OCR setting OCRLANG="$(bashio::config "ocrlang")" diff --git a/papermerge/rootfs/etc/cont-init.d/99-configuration.sh b/papermerge/rootfs/etc/cont-init.d/99-configuration.sh index d8a660221..407255bc6 100755 --- a/papermerge/rootfs/etc/cont-init.d/99-configuration.sh +++ b/papermerge/rootfs/etc/cont-init.d/99-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################## # SELECT FOLDERS # diff --git a/photoprism/rootfs/etc/cont-init.d/00-folders.sh b/photoprism/rootfs/etc/cont-init.d/00-folders.sh index 342510062..5e235200d 100755 --- a/photoprism/rootfs/etc/cont-init.d/00-folders.sh +++ b/photoprism/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then PUID="$(bashio::config "PUID")" diff --git a/photoprism/rootfs/etc/cont-init.d/30-graphic_drivers.sh b/photoprism/rootfs/etc/cont-init.d/30-graphic_drivers.sh index dec4d784f..a604832d2 100755 --- a/photoprism/rootfs/etc/cont-init.d/30-graphic_drivers.sh +++ b/photoprism/rootfs/etc/cont-init.d/30-graphic_drivers.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2015 if bashio::config.has_value 'graphic_drivers'; then diff --git a/photoprism/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/photoprism/rootfs/etc/cont-init.d/32-nginx_ingress.sh index 48edbe4c5..4c4276ad9 100755 --- a/photoprism/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/photoprism/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/photoprism/rootfs/etc/cont-init.d/32-nginx_ssl.sh b/photoprism/rootfs/etc/cont-init.d/32-nginx_ssl.sh index 1e0186384..9d940f96a 100755 --- a/photoprism/rootfs/etc/cont-init.d/32-nginx_ssl.sh +++ b/photoprism/rootfs/etc/cont-init.d/32-nginx_ssl.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ############### # SSL SETTING # diff --git a/photoprism/rootfs/etc/cont-init.d/99-run.sh b/photoprism/rootfs/etc/cont-init.d/99-run.sh index ab01931e3..41f0b60df 100755 --- a/photoprism/rootfs/etc/cont-init.d/99-run.sh +++ b/photoprism/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e set +u diff --git a/photoprism/rootfs/run.sh b/photoprism/rootfs/run.sh index d0d8edd89..83da9d74e 100755 --- a/photoprism/rootfs/run.sh +++ b/photoprism/rootfs/run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155,SC2015 ########### diff --git a/piwigo/rootfs/etc/s6-overlay/s6-rc.d/init-alexbelgium/run b/piwigo/rootfs/etc/s6-overlay/s6-rc.d/init-alexbelgium/run index ca62ed910..727990c65 100755 --- a/piwigo/rootfs/etc/s6-overlay/s6-rc.d/init-alexbelgium/run +++ b/piwigo/rootfs/etc/s6-overlay/s6-rc.d/init-alexbelgium/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################## # SYMLINK CONFIG # diff --git a/plex/rootfs/etc/cont-init.d/21-folders.sh b/plex/rootfs/etc/cont-init.d/21-folders.sh index 676aa07f2..c9d3c1ae8 100755 --- a/plex/rootfs/etc/cont-init.d/21-folders.sh +++ b/plex/rootfs/etc/cont-init.d/21-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################## # SYMLINK CONFIG # diff --git a/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh b/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh index 67dc1ab3e..2a6304686 100755 --- a/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh +++ b/plex_meta_manager/rootfs/etc/cont-init.d/20-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Where is the config CONFIGSOURCE=$(bashio::config "PMM_CONFIG") diff --git a/portainer/rootfs/etc/cont-init.d/00-aaa_portainer_install.sh b/portainer/rootfs/etc/cont-init.d/00-aaa_portainer_install.sh index 3eb804c9e..f24beddd3 100755 --- a/portainer/rootfs/etc/cont-init.d/00-aaa_portainer_install.sh +++ b/portainer/rootfs/etc/cont-init.d/00-aaa_portainer_install.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if [ -e "/PORTFILE" ]; then echo "Installing portainer..." BUILD_UPSTREAM=$( /vpnip @@ -30,7 +31,7 @@ if [ -f /currentip ]; then # Inform by message bashio::log.info "VPN is up and running with ip $(cat /vpnip), based in country : $COUNTRY" - # Check every 15m + # Check every 15m sleep 15m true diff --git a/qbittorrent/rootfs/etc/services.d/timer/run b/qbittorrent/rootfs/etc/services.d/timer/run index 688470bfa..9cad72ee1 100644 --- a/qbittorrent/rootfs/etc/services.d/timer/run +++ b/qbittorrent/rootfs/etc/services.d/timer/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio -# shellcheck shell=bash +# shellcheck shell=bash +set -e RUNTIME=$(bashio::config 'run_duration') diff --git a/radarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/radarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh index f307cd7af..63565d615 100755 --- a/radarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/radarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/radarr/rootfs/etc/services.d/nginx/run b/radarr/rootfs/etc/services.d/nginx/run index faced81c1..424137301 100644 --- a/radarr/rootfs/etc/services.d/nginx/run +++ b/radarr/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Set variables diff --git a/readarr/rootfs/etc/cont-init.d/00-config_location.sh b/readarr/rootfs/etc/cont-init.d/00-config_location.sh index 5b89db0ce..41be1ae65 100755 --- a/readarr/rootfs/etc/cont-init.d/00-config_location.sh +++ b/readarr/rootfs/etc/cont-init.d/00-config_location.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if bashio::config.has_value 'CONFIG_LOCATION'; then CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')" diff --git a/readarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/readarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh index f307cd7af..63565d615 100755 --- a/readarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/readarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/readarr/rootfs/etc/services.d/nginx/run b/readarr/rootfs/etc/services.d/nginx/run index 01d9e5003..9beb8eb01 100644 --- a/readarr/rootfs/etc/services.d/nginx/run +++ b/readarr/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Set variables diff --git a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh index 5519220e9..592dc13f5 100755 --- a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh +++ b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ############### # Define user # diff --git a/resiliosync/rootfs/etc/cont-init.d/90-ingress.sh b/resiliosync/rootfs/etc/cont-init.d/90-ingress.sh index 98246f17d..343fe205d 100755 --- a/resiliosync/rootfs/etc/cont-init.d/90-ingress.sh +++ b/resiliosync/rootfs/etc/cont-init.d/90-ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/resiliosync/rootfs/etc/services.d/nginx/run b/resiliosync/rootfs/etc/services.d/nginx/run index 1fb644748..986aaad51 100644 --- a/resiliosync/rootfs/etc/services.d/nginx/run +++ b/resiliosync/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/sabnzbd/rootfs/etc/cont-init.d/20-folders.sh b/sabnzbd/rootfs/etc/cont-init.d/20-folders.sh index 5e08f2db9..3fc62e752 100755 --- a/sabnzbd/rootfs/etc/cont-init.d/20-folders.sh +++ b/sabnzbd/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e slug=sabnzbd diff --git a/sabnzbd/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/sabnzbd/rootfs/etc/cont-init.d/32-nginx_ingress.sh index 91cb8fdc2..6bc6cc18a 100755 --- a/sabnzbd/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/sabnzbd/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2317 ################# diff --git a/scrutiny/rootfs/etc/cont-init.d/01-configuration.sh b/scrutiny/rootfs/etc/cont-init.d/01-configuration.sh index 148a33880..ca88c3ffe 100755 --- a/scrutiny/rootfs/etc/cont-init.d/01-configuration.sh +++ b/scrutiny/rootfs/etc/cont-init.d/01-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # Create folder # diff --git a/scrutiny/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/scrutiny/rootfs/etc/cont-init.d/32-nginx_ingress.sh index fa6895cff..3b8d0806b 100755 --- a/scrutiny/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/scrutiny/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/scrutiny/rootfs/etc/cont-init.d/90-run.sh b/scrutiny/rootfs/etc/cont-init.d/90-run.sh index 8fc4bd440..d00d912ec 100755 --- a/scrutiny/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny/rootfs/etc/cont-init.d/90-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ######################### # EXPOSE COLLECTOR.YAML # diff --git a/scrutiny/rootfs/etc/services.d/nginx/run b/scrutiny/rootfs/etc/services.d/nginx/run index 07447d8b8..623775fc4 100644 --- a/scrutiny/rootfs/etc/services.d/nginx/run +++ b/scrutiny/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/scrutiny_fa/rootfs/etc/cont-init.d/01-configuration.sh b/scrutiny_fa/rootfs/etc/cont-init.d/01-configuration.sh index 0bd9baca1..9530f9711 100755 --- a/scrutiny_fa/rootfs/etc/cont-init.d/01-configuration.sh +++ b/scrutiny_fa/rootfs/etc/cont-init.d/01-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ####################### # Require unprotected # diff --git a/scrutiny_fa/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/scrutiny_fa/rootfs/etc/cont-init.d/32-nginx_ingress.sh index fa6895cff..3b8d0806b 100755 --- a/scrutiny_fa/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/scrutiny_fa/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh b/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh index 9ca78e808..23652a378 100755 --- a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ######################### # EXPOSE COLLECTOR.YAML # diff --git a/scrutiny_fa/rootfs/etc/services.d/nginx/run b/scrutiny_fa/rootfs/etc/services.d/nginx/run index 07447d8b8..623775fc4 100644 --- a/scrutiny_fa/rootfs/etc/services.d/nginx/run +++ b/scrutiny_fa/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index 12905cf1f..c127f2345 100755 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155,SC2016 ################################### diff --git a/sonarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/sonarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh index f307cd7af..63565d615 100755 --- a/sonarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/sonarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/sonarr/rootfs/etc/services.d/nginx/run b/sonarr/rootfs/etc/services.d/nginx/run index 84fa0041a..1b4191c51 100644 --- a/sonarr/rootfs/etc/services.d/nginx/run +++ b/sonarr/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Set variables diff --git a/sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh b/sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh index 4150f586c..e116f6d5d 100755 --- a/sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh +++ b/sponsorblockcast/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # make directory diff --git a/spotweb/rootfs/etc/cont-init.d/90-spotweb b/spotweb/rootfs/etc/cont-init.d/90-spotweb index 03379dea6..acbc8f3aa 100644 --- a/spotweb/rootfs/etc/cont-init.d/90-spotweb +++ b/spotweb/rootfs/etc/cont-init.d/90-spotweb @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Home Assistant Community Add-on: spotweb # This file validates config and creates the database diff --git a/spotweb/rootfs/etc/periodic/daily/check-cache b/spotweb/rootfs/etc/periodic/daily/check-cache index 0d0ac14a4..4944da966 100644 --- a/spotweb/rootfs/etc/periodic/daily/check-cache +++ b/spotweb/rootfs/etc/periodic/daily/check-cache @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Runs the daily task to check the spotweb cache # ============================================================================== diff --git a/spotweb/rootfs/etc/periodic/hourly/spotweb b/spotweb/rootfs/etc/periodic/hourly/spotweb index 45ae30c94..c33fd6085 100644 --- a/spotweb/rootfs/etc/periodic/hourly/spotweb +++ b/spotweb/rootfs/etc/periodic/hourly/spotweb @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Runs the hourly task to update spots # ============================================================================== diff --git a/spotweb/rootfs/etc/services.d/nginx/run b/spotweb/rootfs/etc/services.d/nginx/run index 3a765dd46..238e1f6ce 100644 --- a/spotweb/rootfs/etc/services.d/nginx/run +++ b/spotweb/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Home Assistant Community Add-on: spotweb # Runs the Nginx daemon diff --git a/spotweb/rootfs/etc/services.d/phpfpm/run b/spotweb/rootfs/etc/services.d/phpfpm/run index 4914d92b5..26d2c6e81 100644 --- a/spotweb/rootfs/etc/services.d/phpfpm/run +++ b/spotweb/rootfs/etc/services.d/phpfpm/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e bashio::log.info "Starting PHP-FPM..." diff --git a/tandoor_recipes/rootfs/etc/cont-init.d/20-folders.sh b/tandoor_recipes/rootfs/etc/cont-init.d/20-folders.sh index dbde57e2c..b54992575 100755 --- a/tandoor_recipes/rootfs/etc/cont-init.d/20-folders.sh +++ b/tandoor_recipes/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/bashio # shellcheck shell=bash +set -e slug="tandoor_recipes" diff --git a/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh b/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh index dd8c357ba..de22468fe 100755 --- a/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh +++ b/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/bashio # shellcheck shell=bash +set -e if [[ -n "${DISABLE_INGRESS}" ]]; then bashio::log.info "Ingress disabled" diff --git a/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh b/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh index 7d8eeea64..df70979cb 100755 --- a/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh +++ b/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155 ##################### diff --git a/tdarr/rootfs/etc/cont-init.d/00-configuration.sh b/tdarr/rootfs/etc/cont-init.d/00-configuration.sh index be564052e..bd54fd383 100755 --- a/tdarr/rootfs/etc/cont-init.d/00-configuration.sh +++ b/tdarr/rootfs/etc/cont-init.d/00-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # Set PUID PGID # diff --git a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh index a799e443e..799464a2a 100755 --- a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh +++ b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # Data remanence for /teamspeak/save if [ -d /teamspeak ]; then diff --git a/teamspeak/rootfs/etc/services.d/logs.sh b/teamspeak/rootfs/etc/services.d/logs.sh index 00ec4ed45..3f26b029b 100755 --- a/teamspeak/rootfs/etc/services.d/logs.sh +++ b/teamspeak/rootfs/etc/services.d/logs.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e if [ ! -f /touched ]; then until [[ -n $(cat /data/*_1.log 2>/dev/null) ]]; do diff --git a/transmission/rootfs/etc/cont-init.d/01-config.sh b/transmission/rootfs/etc/cont-init.d/01-config.sh index 17d0a1c0f..a13ca5c57 100755 --- a/transmission/rootfs/etc/cont-init.d/01-config.sh +++ b/transmission/rootfs/etc/cont-init.d/01-config.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e declare CONFIG #declare incomplete_bool diff --git a/transmission/rootfs/etc/cont-init.d/19-json_repair.sh b/transmission/rootfs/etc/cont-init.d/19-json_repair.sh index 917564d76..6b6b32b2d 100755 --- a/transmission/rootfs/etc/cont-init.d/19-json_repair.sh +++ b/transmission/rootfs/etc/cont-init.d/19-json_repair.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e JSONTOCHECK='/config/addons_config/transmission/settings.json' JSONSOURCE='/defaults/settings.json' diff --git a/transmission/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/transmission/rootfs/etc/cont-init.d/32-nginx_ingress.sh index f307cd7af..63565d615 100755 --- a/transmission/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/transmission/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/transmission/rootfs/etc/cont-init.d/90-customUI.sh b/transmission/rootfs/etc/cont-init.d/90-customUI.sh index c9536ff0d..7d6f4afe3 100755 --- a/transmission/rootfs/etc/cont-init.d/90-customUI.sh +++ b/transmission/rootfs/etc/cont-init.d/90-customUI.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################ # Alternate UI # diff --git a/transmission/rootfs/etc/services.d/nginx/run b/transmission/rootfs/etc/services.d/nginx/run index e01b0ccb5..ba9b6d639 100644 --- a/transmission/rootfs/etc/services.d/nginx/run +++ b/transmission/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/transmission_openvpn/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/transmission_openvpn/rootfs/etc/cont-init.d/32-nginx_ingress.sh index f307cd7af..63565d615 100755 --- a/transmission_openvpn/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/transmission_openvpn/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # NGINX SETTING # diff --git a/transmission_openvpn/rootfs/usr/bin/restart_addon b/transmission_openvpn/rootfs/usr/bin/restart_addon index ac96a2aaa..c612cdd03 100644 --- a/transmission_openvpn/rootfs/usr/bin/restart_addon +++ b/transmission_openvpn/rootfs/usr/bin/restart_addon @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e bashio::log.fatal 'Tunnel down, addon restarting in 15 seconds' sleep 15 diff --git a/ubooquity/rootfs/etc/32-nginx_ingress.sh b/ubooquity/rootfs/etc/32-nginx_ingress.sh index a41162763..0dc1fe02e 100755 --- a/ubooquity/rootfs/etc/32-nginx_ingress.sh +++ b/ubooquity/rootfs/etc/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################### # INGRESS SETTING # diff --git a/ubooquity/rootfs/etc/cont-init.d/00-folders.sh b/ubooquity/rootfs/etc/cont-init.d/00-folders.sh index 96ab97cc3..ab1d78dfa 100755 --- a/ubooquity/rootfs/etc/cont-init.d/00-folders.sh +++ b/ubooquity/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e slug=ubooquity diff --git a/ubooquity/rootfs/etc/cont-init.d/32-nginx_ssl.sh b/ubooquity/rootfs/etc/cont-init.d/32-nginx_ssl.sh index 98bc7c320..7d45ed9b4 100755 --- a/ubooquity/rootfs/etc/cont-init.d/32-nginx_ssl.sh +++ b/ubooquity/rootfs/etc/cont-init.d/32-nginx_ssl.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ############### # SSL SETTING # diff --git a/ubooquity/rootfs/etc/cont-init.d/91-configuration.sh b/ubooquity/rootfs/etc/cont-init.d/91-configuration.sh index b10e7ceec..74c067589 100755 --- a/ubooquity/rootfs/etc/cont-init.d/91-configuration.sh +++ b/ubooquity/rootfs/etc/cont-init.d/91-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ########### # FOLDERS # diff --git a/ubooquity/rootfs/etc/cont-init.d/93-custom_webUI.sh b/ubooquity/rootfs/etc/cont-init.d/93-custom_webUI.sh index 8b74e2123..cc111f97b 100755 --- a/ubooquity/rootfs/etc/cont-init.d/93-custom_webUI.sh +++ b/ubooquity/rootfs/etc/cont-init.d/93-custom_webUI.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################ # Alternate UI # diff --git a/ubooquity/rootfs/etc/services.d/nginx/run b/ubooquity/rootfs/etc/services.d/nginx/run index f773aec81..c5fbce89f 100644 --- a/ubooquity/rootfs/etc/services.d/nginx/run +++ b/ubooquity/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # ============================================================================== # Wait for transmission to become available diff --git a/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh b/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh index c61993a41..b1c45c08c 100755 --- a/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh +++ b/webtop_kde/rootfs/etc/cont-init.d/20-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2046 # Define user diff --git a/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh b/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh index 77bc80983..6847b03cc 100755 --- a/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh +++ b/webtop_kde/rootfs/etc/cont-init.d/80-configuration.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2015 # Install specific apps diff --git a/webtop_kde/rootfs/etc/cont-init.d/90-ingress.sh b/webtop_kde/rootfs/etc/cont-init.d/90-ingress.sh index 667dc7233..c66c2e4b5 100755 --- a/webtop_kde/rootfs/etc/cont-init.d/90-ingress.sh +++ b/webtop_kde/rootfs/etc/cont-init.d/90-ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e # nginx Path NGINX_CONFIG=/etc/nginx/sites-available/ingress.conf diff --git a/webtrees/rootfs/etc/cont-init.d/99-run.sh b/webtrees/rootfs/etc/cont-init.d/99-run.sh index 0517da122..b949beb50 100755 --- a/webtrees/rootfs/etc/cont-init.d/99-run.sh +++ b/webtrees/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # shellcheck disable=SC2155 ############## diff --git a/whoogle/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/whoogle/rootfs/etc/cont-init.d/32-nginx_ingress.sh index 84928a0e7..ff3d6774a 100755 --- a/whoogle/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/whoogle/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -1,5 +1,6 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +set -e ################# # CORRECT IMAGE # diff --git a/zoneminder/rootfs/etc/cont-init.d/00-folders.sh b/zoneminder/rootfs/etc/cont-init.d/00-folders.sh index d91196f63..f8c9cf508 100755 --- a/zoneminder/rootfs/etc/cont-init.d/00-folders.sh +++ b/zoneminder/rootfs/etc/cont-init.d/00-folders.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e #CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") #CONFIGSOURCE=$(dirname "$CONFIGSOURCE") diff --git a/zoneminder/rootfs/etc/cont-init.d/99-run.sh b/zoneminder/rootfs/etc/cont-init.d/99-run.sh index d2c0fa8c6..cbef743b7 100755 --- a/zoneminder/rootfs/etc/cont-init.d/99-run.sh +++ b/zoneminder/rootfs/etc/cont-init.d/99-run.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bashio # shellcheck shell=bash +set -e # hadolint ignore=SC2155 #################