fix: admin password sync for forgejo v7 (#445)

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.' echo '...created.'
else else
echo "Admin account '${GITEA_ADMIN_USERNAME}' already exist. Running update to sync password..." 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.' echo '...password sync done.'
fi fi
} }