Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-12771] The init script will execute each time the inst…
…ance is started
  • Loading branch information
Francis Upton IV committed Feb 15, 2012
1 parent 9830909 commit 8035bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java
Expand Up @@ -71,7 +71,7 @@ else if (bootstrapResult == SAMEUSER)
SCPClient scp = conn.createSCPClient();
String initScript = computer.getNode().initScript;

if(initScript!=null && initScript.trim().length()>0 && conn.exec("test -e /.hudson-run-init", logger) !=0) {
if(initScript!=null && initScript.trim().length()>0 && conn.exec("test -e ~/.hudson-run-init", logger) !=0) {
logger.println("Executing init script");
scp.put(initScript.getBytes("UTF-8"),"init.sh","/tmp","0700");
Session sess = conn.openSession();
Expand Down

0 comments on commit 8035bc5

Please sign in to comment.