mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Add GLOBAL_VAR_FILES to script injection loop
This commit is contained in:
@@ -234,7 +234,7 @@ cp "$ENV_FILE" "$ETC_ENV_FILE"
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Inject into scripts and shells (best-effort)
|
# 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"
|
[[ -f "$f" ]] && inject_block "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user