AUTH-910, AUTH-1049, AUTH-1068, AUTH-1056: Generate and store Access tokens with E2EE option, curl/cmd wrapper

This commit is contained in:
Austin Cherry
2018-08-15 17:23:34 -05:00
committed by Areg Harutyunyan
parent 671483a95c
commit 4f04f35bd1
98 changed files with 13370 additions and 839 deletions

View File

@@ -11,6 +11,7 @@ import (
"path/filepath"
"text/template"
"github.com/cloudflare/cloudflared/cmd/cloudflared/config"
"github.com/mitchellh/go-homedir"
)
@@ -94,7 +95,7 @@ func runCommand(command string, args ...string) error {
}
func ensureConfigDirExists(configDir string) error {
ok, err := fileExists(configDir)
ok, err := config.FileExists(configDir)
if !ok && err == nil {
err = os.Mkdir(configDir, 0700)
}