fix: set cmd.Dir to instance dir so setup.sh finds modules/

This commit is contained in:
admin 2026-08-01 17:14:45 +00:00
parent fd3a005fe8
commit 91b8b0e980

View file

@ -64,6 +64,7 @@ func InstallNode(node state.Node, apiToken, apiHost, labels string) error {
"--batch", "--token", apiToken, "--cloud", cloudFromHost(apiHost), "--batch", "--token", apiToken, "--cloud", cloudFromHost(apiHost),
"--custom-ngx-build", "--custom-ngx-build",
) )
cmd.Dir = instanceDir
logFile, _ := os.Create(filepath.Join(instanceDir, "install.log")) logFile, _ := os.Create(filepath.Join(instanceDir, "install.log"))
if logFile != nil { if logFile != nil {