During auth generation, create directory if it does not exist.

Addresses issue #902
master
Matt Butcher 9 years ago
parent f1c099af5f
commit ac6abd608f
  1. 3
      controller-main.go

@ -115,6 +115,9 @@ func genAuthFirstTime() (*AuthConfig, *probe.Error) {
if isAuthConfigFileExists() { if isAuthConfigFileExists() {
return nil, nil return nil, nil
} }
if err := createAuthConfigPath(); err != nil {
return nil, err
}
// Initialize new config, since config file doesn't exist yet // Initialize new config, since config file doesn't exist yet
config := &AuthConfig{} config := &AuthConfig{}
config.Version = "0.0.1" config.Version = "0.0.1"

Loading…
Cancel
Save