From 090578a27adf89bedb923b1cc28b58d0c30f36ee Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 6 Apr 2026 00:13:31 -0500 Subject: [PATCH] 's' --- scripts/linux/lib/common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/linux/lib/common.sh b/scripts/linux/lib/common.sh index a53993e..832f36c 100644 --- a/scripts/linux/lib/common.sh +++ b/scripts/linux/lib/common.sh @@ -584,6 +584,10 @@ if old_block in text: path.write_text(text, encoding="utf-8") PY chown -R live:live "$ANDROID_PANEL_DIR" + # Git 2.35+ refuses root git in repos owned by another user unless listed here. + if [ "$(id -u)" -eq 0 ] && ! git config --global --get-all safe.directory 2>/dev/null | grep -qxF "$ANDROID_PANEL_DIR"; then + git config --global --add safe.directory "$ANDROID_PANEL_DIR" + fi runuser -u live -- bash -lc "python3 -m venv '$ANDROID_PANEL_DIR/.venv' && . '$ANDROID_PANEL_DIR/.venv/bin/activate' && pip install --upgrade pip && pip install -r '$ANDROID_PANEL_DIR/requirements.txt'" cat >/etc/systemd/system/live-android-panel.service <