fix: remove cmd.Dir — setup.sh cp -a . /opt/wallarm self-destructs when cwd is /opt/wallarm
This commit is contained in:
parent
af8df1a659
commit
02f3368fa6
1 changed files with 0 additions and 1 deletions
|
|
@ -59,7 +59,6 @@ func InstallNode(node state.Node, apiToken, apiHost, labels string) error {
|
||||||
cmd := exec.Command("bash", filepath.Join(archiveDir, "setup.sh"),
|
cmd := exec.Command("bash", filepath.Join(archiveDir, "setup.sh"),
|
||||||
"--batch", "--token", apiToken, "--cloud", cloudFromHost(apiHost),
|
"--batch", "--token", apiToken, "--cloud", cloudFromHost(apiHost),
|
||||||
)
|
)
|
||||||
cmd.Dir = archiveDir
|
|
||||||
|
|
||||||
logFile, _ := os.Create(filepath.Join(archiveDir, "install.log"))
|
logFile, _ := os.Create(filepath.Join(archiveDir, "install.log"))
|
||||||
if logFile != nil {
|
if logFile != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue