fix: prevent admin password update from repeatedly triggering password reset

This commit is contained in:
James Harmison 2024-07-04 11:28:10 -04:00
parent 1ac39a6f5d
commit 3a6995d5cc
No known key found for this signature in database
GPG Key ID: 32383B2D27A5D4B5

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
}