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