summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/deploy.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 9456fef..1836fe6 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -32,8 +32,10 @@ namespace :deploy do
before 'check:linked_files', :upload_config => 'config.yml' do |t|
on roles(:app) do
- shared_dir = File.join(fetch(:deploy_to), 'shared')
- upload!(t.prerequisites.first, File.join(shared_dir, t.prerequisites.first))
+ target_file = File.join(fetch(:deploy_to), 'shared', t.prerequisites.first)
+ unless test("[ -f #{target_file} ]")
+ upload!(t.prerequisites.first, target_file)
+ end
end
end