Migrate to email field instead of username due to breaking change in FleetDM 4.x

This commit is contained in:
Jason Ertel
2021-11-16 12:03:46 -05:00
parent 6cd7b252df
commit 11fc0da971
3 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ case "${2^^}" in
esac
MYSQL_OUTPUT=$(docker exec so-mysql mysql -u root --password=$MYSQL_PASS fleet -e \
"UPDATE users SET enabled=$FLEET_STATUS WHERE username='$FLEET_USER'" 2>&1)
"UPDATE users SET enabled=$FLEET_STATUS WHERE email='$FLEET_USER'" 2>&1)
if [[ $? -eq 0 ]]; then
echo "Successfully updated user in Fleet"