mofa 0.3.38 → 0.3.39
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mofa/provision_cmd.rb +2 -2
- data/lib/mofa/version.rb +1 -1
- metadata +1 -1
data/lib/mofa/provision_cmd.rb
CHANGED
@@ -206,9 +206,9 @@ class ProvisionCmd < MofaCmd
|
|
206
206
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
207
207
|
out = ssh_exec!(ssh, "echo #{cookbook.version} | sudo tee /var/lib/mofa/last_cookbook_version")
|
208
208
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
209
|
-
out = ssh_exec!(ssh, "echo #{chef_solo_runs[hostname]['status']}| sudo tee /var/lib/mofa/last_status")
|
209
|
+
out = ssh_exec!(ssh, "echo #{chef_solo_runs[hostname]['status']} | sudo tee /var/lib/mofa/last_status")
|
210
210
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
211
|
-
out = ssh_exec!(ssh, "echo '#!/bin/bash' | sudo tee /usr/bin/mofa_log && echo 'cat /
|
211
|
+
out = ssh_exec!(ssh, "echo '#!/bin/bash' | sudo tee /usr/bin/mofa_log && echo 'cat #{solo_dir}/log' | sudo tee -a /usr/bin/mofa_log && sudo chmod 755 /usr/bin/mofa_log")
|
212
212
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
213
213
|
out = ssh_exec!(ssh, "date '+%Y-%m-%d %H:%M:%S' | sudo tee -a /var/lib/mofa/last_timestamp")
|
214
214
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
data/lib/mofa/version.rb
CHANGED