mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-28 07:43:31 +02:00
Use effective Claude runtime ownership
This commit is contained in:
@@ -3,9 +3,10 @@
|
|||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Define user
|
# Use the effective shared desktop user identity. In bypass mode an earlier init script may
|
||||||
PUID=$(bashio::config "PUID")
|
# remap abc away from UID 0 because Claude Code rejects bypass permissions when run as root.
|
||||||
PGID=$(bashio::config "PGID")
|
PUID="$(id -u abc)"
|
||||||
|
PGID="$(id -g abc)"
|
||||||
|
|
||||||
# Check data location
|
# Check data location
|
||||||
LOCATION="$(bashio::config 'data_location')"
|
LOCATION="$(bashio::config 'data_location')"
|
||||||
|
|||||||
Reference in New Issue
Block a user