mofa 0.3.35 → 0.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -206,11 +206,13 @@ class ProvisionCmd < MofaCmd
206
206
  puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
207
207
  out = ssh_exec!(ssh, "echo #{chef_solo_runs[hostname]['status']}| sudo tee /var/lib/mofa/last_status")
208
208
  puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
209
- out = ssh_exec!(ssh, "echo '#!/bin/bash' | sudo tee /usr/bin/mofalog && echo 'cat /var/lib/mofa/last_run/log' | sudo tee -a /usr/bin/mofa_log && sudo chmod 755 /usr/bin/mofa_log")
209
+ out = ssh_exec!(ssh, "echo '#!/bin/bash' | sudo tee /usr/bin/mofa_log && echo 'cat /var/lib/mofa/last_run/log' | sudo tee -a /usr/bin/mofa_log && sudo chmod 755 /usr/bin/mofa_log")
210
210
  puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
211
- out = ssh_exec!(ssh, "sudo chmod 755 #{solo_dir} && sudo chmod 644 #{solo_dir}/log")
211
+ out = ssh_exec!(ssh, "sudo find #{solo_dir} -type d | xargs chmod 700")
212
212
  puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
213
- out = ssh_exec!(ssh, "cat #{solo_dir}/log | sudo tee -a /var/log/mofa.log")
213
+ out = ssh_exec!(ssh, "sudo find #{solo_dir} -type f | xargs chmod 600")
214
+ puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
215
+ out = ssh_exec!(ssh, "date '+%Y-%m-%d %H:%M:%S' | sudo tee -a /var/lib/mofa/last_timestamp")
214
216
  puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
215
217
  end
216
218
  end
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.3.35"
2
+ VERSION = "0.3.37"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.35
4
+ version: 0.3.37
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-17 00:00:00.000000000 Z
12
+ date: 2017-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec