From ad931cd8536f51b3ffff3fef0f0f08ae77489f11 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Mon, 9 Mar 2020 18:27:19 -0300 Subject: [PATCH] changing config name --- .gitignore | 2 +- README.md | 4 ++-- cmd/root.go | 2 +- config.sample.json => hsm-tools-config.sample.json | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename config.sample.json => hsm-tools-config.sample.json (100%) diff --git a/.gitignore b/.gitignore index 9b3e9ee..16c1124 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ hsm-tools *.so # Databases *sqlite3 -config.json \ No newline at end of file +hsm-tools-config.json \ No newline at end of file diff --git a/README.md b/README.md index f12a69a..2584c28 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/cmd/root.go b/cmd/root.go index c2a5049..1e4ecbd 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -43,7 +43,7 @@ func initConfig() { } else { viper.AddConfigPath("/etc/hsm-tools/") viper.AddConfigPath("./") - viper.SetConfigName("config") + viper.SetConfigName("hsm-tools-config") } viper.AutomaticEnv() diff --git a/config.sample.json b/hsm-tools-config.sample.json similarity index 100% rename from config.sample.json rename to hsm-tools-config.sample.json