Use effective Claude runtime ownership

This commit is contained in:
Alexandre
2026-07-15 10:59:49 +02:00
parent 5d577ad954
commit 6bf379bffc

View File

@@ -3,9 +3,10 @@
# shellcheck disable=SC2046
set -e
# Define user
PUID=$(bashio::config "PUID")
PGID=$(bashio::config "PGID")
# Use the effective shared desktop user identity. In bypass mode an earlier init script may
# remap abc away from UID 0 because Claude Code rejects bypass permissions when run as root.
PUID="$(id -u abc)"
PGID="$(id -g abc)"
# Check data location
LOCATION="$(bashio::config 'data_location')"