diff --git a/internal/native/native.go b/internal/native/native.go index 3a31ef4..145cd77 100644 --- a/internal/native/native.go +++ b/internal/native/native.go @@ -64,6 +64,7 @@ func InstallNode(node state.Node, apiToken, apiHost, labels string) error { "--batch", "--token", apiToken, "--cloud", cloudFromHost(apiHost), "--custom-ngx-build", ) + cmd.Dir = instanceDir logFile, _ := os.Create(filepath.Join(instanceDir, "install.log")) if logFile != nil {