diff --git a/arpspoof/rootfs/etc/cont-init.d/99-run.sh b/arpspoof/rootfs/etc/cont-init.d/99-run.sh index 895d30aa2..4c633a894 100644 --- a/arpspoof/rootfs/etc/cont-init.d/99-run.sh +++ b/arpspoof/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash # Autodefine if not defined if [ -n "$INTERFACE_NAME" ]; then diff --git a/cloudcommander/rootfs/etc/cont-init.d/99-run.sh b/cloudcommander/rootfs/etc/cont-init.d/99-run.sh index a81ac2184..cb12eaff0 100644 --- a/cloudcommander/rootfs/etc/cont-init.d/99-run.sh +++ b/cloudcommander/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ################# # NGINX SETTING # diff --git a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh index 1977556a6..52f832657 100644 --- a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ################## # INITIALIZATION # 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 1977556a6..52f832657 100644 --- a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ################## # INITIALIZATION # diff --git a/filebrowser/rootfs/etc/cont-init.d/99-run.sh b/filebrowser/rootfs/etc/cont-init.d/99-run.sh index a8f4e20eb..001962b42 100644 --- a/filebrowser/rootfs/etc/cont-init.d/99-run.sh +++ b/filebrowser/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ################### # SSL CONFIG v1.0 # diff --git a/fireflyiii/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii/rootfs/etc/cont-init.d/99-run.sh index 08728770b..2e2d4a40e 100644 --- a/fireflyiii/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash # hadolint ignore=SC2155 ######## diff --git a/fireflyiii/rootfs/templates/cronupdate b/fireflyiii/rootfs/templates/cronupdate index ab7256a92..a9dafa642 100644 --- a/fireflyiii/rootfs/templates/cronupdate +++ b/fireflyiii/rootfs/templates/cronupdate @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ( 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 81ab38ad6..d28226a54 100644 --- 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,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash 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 4ace8bc74..be13b8086 100644 --- 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,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash 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 43914576f..c86170d26 100644 --- a/fireflyiii_data_importer/rootfs/templates/cronupdate +++ b/fireflyiii_data_importer/rootfs/templates/cronupdate @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash 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 8aa7d6879..d63af92c1 100644 --- a/flaresolverr/rootfs/etc/cont-init.d/99-run.sh +++ b/flaresolverr/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash 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/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh b/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh index 9f72cada8..152e0e735 100644 --- a/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh +++ b/gazpar2mqtt/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ############## # Launch App # diff --git a/inadyn/rootfs/etc/cont-init.d/99-run.sh b/inadyn/rootfs/etc/cont-init.d/99-run.sh index 9072bccae..9c25e9b3b 100644 --- a/inadyn/rootfs/etc/cont-init.d/99-run.sh +++ b/inadyn/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ################# # Create config # diff --git a/joal/rootfs/etc/cont-init.d/99-run.sh b/joal/rootfs/etc/cont-init.d/99-run.sh index e027214e1..1f22eba4f 100644 --- a/joal/rootfs/etc/cont-init.d/99-run.sh +++ b/joal/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ################ # 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 6c4a2185d..db31e7556 100644 --- a/joplin/rootfs/etc/cont-init.d/99-run.sh +++ b/joplin/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bashio +# shellcheck shell=bash +# 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." @@ -61,5 +63,5 @@ export APP_BASE_URL=$(bashio::config 'APP_BASE_URL') bashio::log.info 'Starting Joplin. Initial user is "admin@localhost" with password "admin"' -cd /home/joplin +cd /home/joplin || true npm --prefix packages/server start diff --git a/mealie/rootfs/run.txt b/mealie/rootfs/run.txt index 96781b5ec..5119ab430 100644 --- a/mealie/rootfs/run.txt +++ b/mealie/rootfs/run.txt @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ########## # BANNER # @@ -55,5 +56,5 @@ if bashio::config.true 'ssl'; then bashio::log.info "Configuring ssl" CERTFILE=$(bashio::config 'certfile') KEYFILE=$(bashio::config 'keyfile') - sed -i "7 i tls /ssl/$CERTFILE /ssl/$KEYFILE" /app/Caddyfile + sed -i "7 i tls /ssl/$CERTFILE /ssl/$KEYFILE" /app/Caddyfile fi diff --git a/photoprism/rootfs/etc/cont-init.d/99-run.sh b/photoprism/rootfs/etc/cont-init.d/99-run.sh index c72e28567..137795a60 100644 --- a/photoprism/rootfs/etc/cont-init.d/99-run.sh +++ b/photoprism/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ################### # Define database # diff --git a/photoprism/rootfs/run.sh b/photoprism/rootfs/run.sh index f205d7aa4..8ac56bc61 100644 --- a/photoprism/rootfs/run.sh +++ b/photoprism/rootfs/run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash ########### # SCRIPTS # diff --git a/portainer/rootfs/etc/services.d/portainer/run b/portainer/rootfs/etc/services.d/portainer/run index db4c09aa1..f25569d67 100644 --- a/portainer/rootfs/etc/services.d/portainer/run +++ b/portainer/rootfs/etc/services.d/portainer/run @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash bashio::log.info "Starting Portainer..." @@ -24,7 +25,7 @@ if bashio::config.true 'ssl'; then options+=(--sslcert /ssl/$CERTFILE) options+=(--sslkey /ssl/$KEYFILE) bashio::log.info "... ssl activated" -fi +fi ################ # SET PASSWORD # diff --git a/webtrees/rootfs/etc/cont-init.d/99-run.sh b/webtrees/rootfs/etc/cont-init.d/99-run.sh index fe7a40873..6d8ce271f 100644 --- a/webtrees/rootfs/etc/cont-init.d/99-run.sh +++ b/webtrees/rootfs/etc/cont-init.d/99-run.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bashio +# shellcheck shell=bash #################### # GLOBAL VARIABLES #