Browse files

Ensure and livery command are executable

  • Loading branch information...
1 parent 7c0745e commit 6853b1ba5a4f287d7d4b815d95cc5a66a2f46f02 @jblaine jblaine committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/blimpy/livery/puppet.rb
2 lib/blimpy/livery/puppet.rb
@@ -44,7 +44,7 @@ def flight(box)
run_sudo = ''
run_sudo = 'sudo' if use_sudo?(box)
- box.ssh_into("cd #{dir_name} && #{run_sudo} ./ #{command}")
+ box.ssh_into("cd #{dir_name} && chmod 755 ./ #{command} && #{run_sudo} ./ #{command}")
rtyler Dec 19, 2012

I just noticed that this won't work for the Puppet livery properly. Oops.

def postflight(box)

4 comments on commit 6853b1b


Oh crap. I'm looking into this.


Wow, what a shitty hasty PR. My apologies.

The following works for me if you care to try it out or bother with it:

box.ssh_into("cd #{dir_name} && chmod 755 ./gempath ../#{manifest_path} && #{run_sudo} ./ #{command}")

I've fixed this in the most recent HEAD of master, I'm curious why chmod'ing the manifest file is necessary as well?


It's not.

sighs at self

I was criss-crossing CWD with Puppet liveries in my head. Take-away: livery/cwd.rb should have a chmod fix as well before it tries to run its script.

Please sign in to comment.