fix: admin password sync for forgejo v7 (#445)
Some checks failed
build / lint-node (push) Has been cancelled
build / lint-helm (push) Has been cancelled
build / e2e (v1.27.11) (push) Has been cancelled
build / e2e (v1.28.7) (push) Has been cancelled
build / e2e (v1.29.2) (push) Has been cancelled
build / test-success (push) Has been cancelled
build / publish (push) Has been cancelled

Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/445
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Lukas <info@devls.de>
Co-committed-by: Lukas <info@devls.de>
This commit is contained in:
Lukas 2024-04-29 16:37:43 +00:00 committed by Michael Kriese
parent fe75ae7610
commit a147236d09

View file

@ -114,7 +114,7 @@ stringData:
echo '...created.'
else
echo "Admin account '${GITEA_ADMIN_USERNAME}' already exist. Running update to sync password..."
gitea admin user change-password --username "${GITEA_ADMIN_USERNAME}" --password "${GITEA_ADMIN_PASSWORD}"
gitea admin user change-password --username "${GITEA_ADMIN_USERNAME}" --password "${GITEA_ADMIN_PASSWORD} --must-change-password=false"
echo '...password sync done.'
fi
}