Skip to content

Commit

Permalink
changing config names
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo committed Mar 9, 2020
1 parent e176630 commit 9366245
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func init() {
&serverConfig.ConfigPath,
"config",
"c",
"./config.yaml",
"./dtc-config.yaml",
"path where to output the local config file")
rsaCmd.Flags().StringVarP(
&serverConfig.NodesConfigPath,
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Currently it supports the creation of the following configurations:
The command has the following parameters:

```
-c, --config string path where to output the local config file (default "/etc/dtc/config.yaml")
-c, --config string path where to output the local config file (default "/etc/dtc/dtc-config.yaml")
-d, --db string path to a file where to put Sqlite3 database (default "/etc/dtc/db.sqlite3")
-h, --help help for rsa
-H, --host string (Required) IP or domain name that the nodes will see from the client
Expand Down
2 changes: 1 addition & 1 deletion rsa/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (conf *ClientConfigParams) GenerateNodeConfig(i int, clientPK string, nodeC
}
v := viper.New()
v.Set("config", c)
if err := v.WriteConfigAs(path.Join(outPath, "config.yaml")); err != nil {
if err := v.WriteConfigAs(path.Join(outPath, "dtcnode-config.yaml")); err != nil {
return errors.Wrap(err, fmt.Sprintf("cannot write node %d config file", i))
}
_, _ = fmt.Fprintf(os.Stderr, "config file written successfully in %s\n", outPath)
Expand Down

0 comments on commit 9366245

Please sign in to comment.