nitpicks and typo

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2022-04-29 19:09:03 +00:00
parent 1cdb81bd3e
commit 6474d46252
2 changed files with 2 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ func InitCommand(cfg *config.Config) *cli.Command {
Name: "admin-password",
Aliases: []string{"ap"},
EnvVars: []string{"ADMIN_PASSWORD", "IDM_ADMIN_PASSWORD"},
Usage: "Set admin password instead of using a random gnerated one",
Usage: "Set admin password instead of using a random generated one",
},
},
Action: func(c *cli.Context) error {

View File

@@ -142,6 +142,7 @@ func backupOcisConfigFile(configPath string) (string, error) {
return targetBackupConfig, nil
}
// CreateConfig creates a config file with random passwords at configPath
func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword string) error {
targetBackupConfig := ""