diff --git a/jeannie b/jeannie index b16d519..1ded1cd 100755 --- a/jeannie +++ b/jeannie @@ -2971,7 +2971,14 @@ if ! sudo docker exec -u git "\${container_name}" gitea -c /data/gitea/conf/app. --email "\${bootstrap_email}" \ --admin \ --must-change-password=false >/tmp/homelab-gitea-user-create.log 2>&1; then - if ! sudo docker exec -u git "\${container_name}" gitea -c /data/gitea/conf/app.ini admin user list | awk -v user="\${bootstrap_user}" 'NR > 1 && \$2 == user { found = 1 } END { exit found ? 0 : 1 }'; then + if sudo docker exec -u git "\${container_name}" gitea -c /data/gitea/conf/app.ini admin user list | awk -v user="\${bootstrap_user}" 'NR > 1 && \$2 == user { found = 1 } END { exit found ? 0 : 1 }'; then + sudo docker exec -u git "\${container_name}" gitea -c /data/gitea/conf/app.ini admin user change-password \ + --username "\${bootstrap_user}" \ + --password "\${bootstrap_password}" >/tmp/homelab-gitea-user-password.log 2>&1 || { + cat /tmp/homelab-gitea-user-password.log >&2 + exit 1 + } + else cat /tmp/homelab-gitea-user-create.log >&2 exit 1 fi