From 95641d253cf2310d0e4701905e6a92bbc0d050f1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 16 Jul 2026 13:49:02 +0200 Subject: [PATCH] Update 83-github_cli.sh --- claude_desktop/rootfs/etc/cont-init.d/83-github_cli.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/claude_desktop/rootfs/etc/cont-init.d/83-github_cli.sh b/claude_desktop/rootfs/etc/cont-init.d/83-github_cli.sh index 14b1a47af2..3df1f2f9ee 100755 --- a/claude_desktop/rootfs/etc/cont-init.d/83-github_cli.sh +++ b/claude_desktop/rootfs/etc/cont-init.d/83-github_cli.sh @@ -36,6 +36,10 @@ run_as_runtime_user() { # Reclaim any root-owned copies left by an earlier add-on version before writing as abc: # these paths are not covered by 82-claude_tools.sh's ownership pass, and a root-owned # ~/.gitconfig would make the first `git config` below fail outright under `set -e`. + +mkdir -p "$HOME/.config" +chown -- "${RUNTIME_UID}:${RUNTIME_GID}" "$HOME/.config" + for managed_path in "$HOME/.gitconfig" "$HOME/.config/gh"; do if [ -e "$managed_path" ]; then chown -R -- "${RUNTIME_UID}:${RUNTIME_GID}" "$managed_path" || bashio::log.warning "Unable to set ownership on $managed_path"