goodrobots / maverick

UAV Autonomous Systems Management
https://goodrobots.github.io/maverick/
MIT License
167 stars 60 forks source link

Added missing field for Grafana mav user creation #1039

Open PYBrulin opened 2 years ago

PYBrulin commented 2 years ago

Hi, this PR simply updates the command used to insert the mav user into the grafana database.

A field required for the creation of the mav user is missing when inserting it into the grafana.db database (probably the "is_service_account" field). This PR simply adds the missing field required to complete the Grafana configuration.

Below is the error that led to this modification:

Error: '/usr/bin/sqlite3 /srv/maverick/data/analysis/grafana/grafana.db "insert into main.user values(100,0,'mav','mav','Maverick User','e35f84e5859dfe5dfe2a9f6ed2086884c3a5e41d206c6e704b48cf45a0dda574ad85b4e9362e8d89eee3eb82e7ef34528ea4','ry48G1ZHyi','yICOZzT82L','',10,0,0,'','2017-06-21 12:54:43','2017-06-21 12:54:43',1,'2017-06-21 12:54:43', 0)"' returned 1 instead of one of [0]

Error: table main.user has 19 columns but 18 values were supplied