recipiez 0.6.25 → 0.6.26
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/logrotate.rb +5 -1
- metadata +2 -2
data/lib/recipiez/version.rb
CHANGED
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
|
-
|
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
|