diff --git a/pufferd.go b/pufferd.go index 200b6e1..275d393 100644 --- a/pufferd.go +++ b/pufferd.go @@ -94,6 +94,14 @@ func main() { return } + if runInstaller { + install.Install(configPath, authRoot, authToken) + } + + if runInstaller || !runDaemon { + return + } + if !runInstaller { if _, err := os.Stat(configPath); os.IsNotExist(err) { defaultPath := "config.json" @@ -110,14 +118,6 @@ func main() { } } - if runInstaller { - install.Install(configPath, authRoot, authToken) - } - - if runInstaller || !runDaemon { - return - } - config.Load(configPath) logging.SetLevelByString(loggingLevel)