recipiez 0.6.25 → 0.6.26

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.
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.6.25'
2
+ VERSION = '0.6.26'
3
3
  end
data/recipes/logrotate.rb CHANGED
@@ -32,7 +32,11 @@ Capistrano::Configuration.instance(true).load do
32
32
  task :move_log_dir_to_mnt do
33
33
  sudo "mkdir -p /mnt/application_logs/#{application}"
34
34
  sudo "chown -R #{user}:#{user} /mnt/application_logs/#{application}"
35
- sudo "mv /var/www/apps/#{application}/shared/log/* /mnt/application_logs/#{application}"
35
+ begin
36
+ sudo "mv /var/www/apps/#{application}/shared/log/* /mnt/application_logs/#{application}"
37
+ rescue
38
+ # ignore the error from this
39
+ end
36
40
  sudo "rm -fr /var/www/apps/#{application}/shared/log"
37
41
  sudo "ln -s /mnt/application_logs/#{application} /var/www/apps/#{application}/shared/log"
38
42
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 25
9
- version: 0.6.25
8
+ - 26
9
+ version: 0.6.26
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alastair Brunton