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

@@ -50,7 +50,7 @@ if [[ $? -ne 0 ]]; then
fi
MYSQL_OUTPUT=$(docker exec so-mysql mysql -u root --password=$MYSQL_PASS fleet -e \
"INSERT INTO users (password,salt,username,email,admin,enabled) VALUES ('$FLEET_HASH','','$FLEET_USER','$FLEET_USER',1,1)" 2>&1)
"INSERT INTO users (password,salt,email,admin,enabled) VALUES ('$FLEET_HASH','','$FLEET_USER',1,1)" 2>&1)
if [[ $? -eq 0 ]]; then
echo "Successfully added user to Fleet"