fix: run Gitea admin user creation command as 'git' user in Fedora script

This commit is contained in:
S
2026-03-02 11:05:25 -05:00
parent 23e93c5124
commit bcbbdb7364

View File

@@ -151,7 +151,7 @@ if curl -sf -u "${GITEA_ADMIN_USER}:${GITEA_ADMIN_PASSWORD}" "${GITEA_BACKUP_INT
log_info "Admin user already exists — skipping" log_info "Admin user already exists — skipping"
else else
# Create via CLI inside container, same pattern as Phase 1 # Create via CLI inside container, same pattern as Phase 1
ssh_exec FEDORA "docker exec gitea gitea admin user create \ ssh_exec FEDORA "docker exec -u git gitea gitea admin user create \
--username '${GITEA_ADMIN_USER}' \ --username '${GITEA_ADMIN_USER}' \
--password '${GITEA_ADMIN_PASSWORD}' \ --password '${GITEA_ADMIN_PASSWORD}' \
--email '${GITEA_ADMIN_EMAIL}' \ --email '${GITEA_ADMIN_EMAIL}' \