From 4d4c71af28ea4d42a97c2a91929a3c8c2198b551 Mon Sep 17 00:00:00 2001 From: tommy Date: Sat, 4 Jan 2025 11:35:21 +0000 Subject: [PATCH] Update apps/home-assistant/entrypoint.sh --- apps/home-assistant/entrypoint.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/home-assistant/entrypoint.sh b/apps/home-assistant/entrypoint.sh index d1016b5..8700a25 100644 --- a/apps/home-assistant/entrypoint.sh +++ b/apps/home-assistant/entrypoint.sh @@ -1,14 +1,21 @@ #!/usr/bin/env bash -#shellcheck disable=SC2086 +# shellcheck disable=SC2086 -# Create /config/tmp if it doesn't exist and ensure proper permissions +# Ensure /config/tmp exists and set correct permissions if [[ ! -d /config/tmp ]]; then mkdir -p /config/tmp chmod 1777 /config/tmp fi -# Set TMPDIR environment variable for uv and other temporary file operations +# Ensure /config/.cache/uv exists +if [[ ! -d /config/.cache/uv ]]; then + mkdir -p /config/.cache/uv + chmod -R 775 /config/.cache/uv +fi + +# Export necessary environment variables export TMPDIR="/config/tmp" +export UV_CACHE_DIR="/config/.cache/uv" # Ensure HACS installation if requested if [[ "${HOME_ASSISTANT__HACS_INSTALL}" == "true" ]]; then