fix: remove cmd.Dir — setup.sh cp -a . /opt/wallarm self-destructs when cwd is /opt/wallarm

This commit is contained in:
admin 2026-08-01 16:53:19 +00:00
parent af8df1a659
commit 02f3368fa6

View file

@ -59,7 +59,6 @@ func InstallNode(node state.Node, apiToken, apiHost, labels string) error {
cmd := exec.Command("bash", filepath.Join(archiveDir, "setup.sh"),
"--batch", "--token", apiToken, "--cloud", cloudFromHost(apiHost),
)
cmd.Dir = archiveDir
logFile, _ := os.Create(filepath.Join(archiveDir, "install.log"))
if logFile != nil {