Update configuration with auth.csv and log sections
This commit is contained in:
parent
9811fe5676
commit
e32d6ce118
2 changed files with 10 additions and 1 deletions
|
@ -22,7 +22,7 @@ pub fn auth(cli: &cli::Cli, config: ConfigBuilder<DefaultState>) -> Result<(), (
|
|||
for backend in backends {
|
||||
let acl = match backend {
|
||||
#[cfg(feature = "csv")]
|
||||
cli::Backend::CSV => config.get::<cli::CSV>("csv").unwrap().to_config().new(),
|
||||
cli::Backend::CSV => config.get::<cli::CSV>("auth.csv").unwrap().to_config().new(),
|
||||
};
|
||||
match &cli.command {
|
||||
cli::Command::Open(cliargs) => {
|
||||
|
|
|
@ -14,9 +14,18 @@ pin = 1
|
|||
active_low = false
|
||||
active_time = 2000
|
||||
|
||||
[log]
|
||||
backends = ["csv"]
|
||||
|
||||
[log.csv]
|
||||
path = "./labadoor-csv"
|
||||
|
||||
[auth]
|
||||
backends = ["csv"]
|
||||
|
||||
[auth.csv]
|
||||
path = "./labadoor-csv"
|
||||
|
||||
[open.auth]
|
||||
labadoor = [ "/usr/bin/labadoor", "auth" ]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue