mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
8 lines
238 B
Plaintext
8 lines
238 B
Plaintext
|
#!/bin/bash
|
|||
|
|
|||
|
# experimental – doesn't always work right
|
|||
|
|
|||
|
NEW_ID=$1
|
|||
|
NEW_TOKEN=$2
|
|||
|
docker compose exec mysql mysql -uroot -ptoor -Dfleet -e "INSERT INTO host_device_auth VALUES ($NEW_ID, $NEW_TOKEN, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);"
|