bug where an init script ran without root privs finds the wrong path

This commit is contained in:
Adrian Cole 2011-07-07 01:13:20 -07:00
parent 0b4347772b
commit bc103209db
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ public class RunScriptOnNodeAsInitScriptUsingSsh implements RunScriptOnNode {
}
protected String execScriptAsDefaultUser(String action) {
return "./" + initFile + " " + action;
return "./" + init.getInstanceName() + " " + action;
}
public NodeMetadata getNode() {