Skip to content

Commit

Permalink
changing config name
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo committed Mar 9, 2020
1 parent e44658a commit ad931cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ hsm-tools
*.so
# Databases
*sqlite3
config.json
hsm-tools-config.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ The folowing command removes the created keys with an specific tag, using the [
You can create a json config file with the structure of `config.sample.json` to set the variables.
The config file will be looked for at the following locations:

* `/etc/hsm-tools/config.json`
* `./config.json` (Current location)
* `/etc/hsm-tools/hsm-tools-config.json`
* `./hsm-tools-config.json` (Current location)

You can also set the config file path using `--config` flag.

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func initConfig() {
} else {
viper.AddConfigPath("/etc/hsm-tools/")
viper.AddConfigPath("./")
viper.SetConfigName("config")
viper.SetConfigName("hsm-tools-config")
}

viper.AutomaticEnv()
Expand Down
File renamed without changes.

0 comments on commit ad931cd

Please sign in to comment.