fdo-rs / fido-device-onboard-rs

An implementation of the FIDO Device Onboard (FDO) spec written in Rust.
BSD 3-Clause "New" or "Revised" License
58 stars 32 forks source link

Database creation wrapper tool #580

Open 7flying opened 9 months ago

7flying commented 9 months ago

With #556 we are adding DB support to FDO, in order to initialise the database contents the clients would need to run: diesel migration run --migration-dir ./migrations_{DATABASE_TYPE_AND_SERVER_TYPE} --database-url  {DATABASE_URL} 

so, do we need to wrap that command into something more easy and encapsulate the dependencies inside an existing RPM?

e.g: fdo-owner-tool initialize-database owner postgres $POSTGRES_URL