diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 5614d0608..ca6fee0e4 100755 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -234,7 +234,7 @@ cp "$ENV_FILE" "$ETC_ENV_FILE" ################################################################################ # Inject into scripts and shells (best-effort) ################################################################################ -for f in /etc/services.d/*/run /etc/cont-init.d/*.sh /entrypoint.sh /etc/bash.bashrc; do +for f in /etc/services.d/*/run /etc/cont-init.d/*.sh /entrypoint.sh /etc/bash.bashrc "${GLOBAL_VAR_FILES:-}"; do [[ -f "$f" ]] && inject_block "$f" done