From 23e93c512452acb7efc9a8d8a39015299d7b5535 Mon Sep 17 00:00:00 2001 From: S Date: Mon, 2 Mar 2026 11:05:19 -0500 Subject: [PATCH] fix: run Gitea admin user creation command as 'git' user in Unraid --- phase1_gitea_unraid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phase1_gitea_unraid.sh b/phase1_gitea_unraid.sh index 0b88009..1d3e105 100755 --- a/phase1_gitea_unraid.sh +++ b/phase1_gitea_unraid.sh @@ -145,7 +145,7 @@ else # Create admin via CLI inside the container (not the API) because no API # token exists yet at this point. || true prevents set -e from exiting if # the user was partially created in a previous interrupted run. - ssh_exec UNRAID "docker exec gitea gitea admin user create \ + ssh_exec UNRAID "docker exec -u git gitea gitea admin user create \ --username '${GITEA_ADMIN_USER}' \ --password '${GITEA_ADMIN_PASSWORD}' \ --email '${GITEA_ADMIN_EMAIL}' \