This commit is contained in:
eric
2026-04-06 00:13:31 -05:00
parent 4a1c675a60
commit 090578a27a

View File

@@ -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 <<UNIT