mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 09:44:51 +00:00
parent
1755870f27
commit
35f80ca798
|
@ -34,6 +34,7 @@ import (
|
|||
"golang.org/x/crypto/ssh"
|
||||
|
||||
"github.com/gravitational/teleport"
|
||||
"github.com/gravitational/teleport/lib/backend"
|
||||
"github.com/gravitational/teleport/lib/client"
|
||||
"github.com/gravitational/teleport/lib/defaults"
|
||||
"github.com/gravitational/teleport/lib/limiter"
|
||||
|
@ -612,6 +613,12 @@ func Configure(clf *CommandLineFlags, cfg *service.Config) error {
|
|||
cfg.AuthServers = append(cfg.AuthServers, cfg.Auth.SSHAddr)
|
||||
}
|
||||
|
||||
// add data_dir to the backend config:
|
||||
if cfg.Auth.StorageConfig.Params == nil {
|
||||
cfg.Auth.StorageConfig.Params = backend.Params{}
|
||||
}
|
||||
cfg.Auth.StorageConfig.Params["data_dir"] = cfg.DataDir
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue