Commit 4867b210dfcac3b41978157b492fa86288eebd56

Authored by Jacob Vosmaer
1 parent 84440be2

Delete symlinked directories during build

config/software/gitlab-core.rb
@@ -59,6 +59,7 @@ build do @@ -59,6 +59,7 @@ build do
59 command "rm config/gitlab.yml config/database.yml" 59 command "rm config/gitlab.yml config/database.yml"
60 60
61 command "mkdir -p #{install_dir}/embedded/service/gitlab-core" 61 command "mkdir -p #{install_dir}/embedded/service/gitlab-core"
  62 + command "rm -rf log tmp public/uploads"
62 command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-core/" 63 command "#{install_dir}/embedded/bin/rsync -a --delete --exclude=.git/*** --exclude=.gitignore ./ #{install_dir}/embedded/service/gitlab-core/"
63 64
64 # Create a wrapper for the rake tasks of the Rails app 65 # Create a wrapper for the rake tasks of the Rails app
files/gitlab-cookbooks/gitlab/recipes/gitlab-core.rb
@@ -92,11 +92,6 @@ end @@ -92,11 +92,6 @@ end
92 "/opt/gitlab/embedded/service/gitlab-core/public/uploads" => gitlab_core_public_uploads_dir, 92 "/opt/gitlab/embedded/service/gitlab-core/public/uploads" => gitlab_core_public_uploads_dir,
93 "/opt/gitlab/embedded/service/gitlab-core/log" => gitlab_core_log_dir 93 "/opt/gitlab/embedded/service/gitlab-core/log" => gitlab_core_log_dir
94 }.each do |link_dir, target_dir| 94 }.each do |link_dir, target_dir|
95 - directory link_dir do  
96 - action :delete  
97 - recursive true  
98 - end  
99 -  
100 link link_dir do 95 link link_dir do
101 to target_dir 96 to target_dir
102 end 97 end