veyron/services/mgmt/node: fixing an update logic bug
Change-Id: Iac92916badce29f81da4166c4df27de8b07da15f
diff --git a/services/mgmt/node/impl/invoker.go b/services/mgmt/node/impl/invoker.go
index c6ca55d..6cbc12a 100644
--- a/services/mgmt/node/impl/invoker.go
+++ b/services/mgmt/node/impl/invoker.go
@@ -386,7 +386,8 @@
output := "#!/bin/bash\n"
output += PreviousEnv + "=" + filepath.Dir(path) + " "
output += strings.Join(envelope.Env, " ") + " "
- output += os.Args[0] + " " + strings.Join(envelope.Args, " ")
+ output += filepath.Join(workspace, "noded") + " "
+ output += strings.Join(envelope.Args, " ")
path = filepath.Join(workspace, "noded.sh")
if err := ioutil.WriteFile(path, []byte(output), 0755); err != nil {
vlog.Errorf("WriteFile(%v) failed: %v", path, err)