Skip to content
Snippets Groups Projects
Commit 54052dc0 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Simplify the 'gitlab-scripts' software

Also, avoid deleting almost all the contents of /opt/gitlab/embedded/bin
with 'rsync --delete'. :)
parent 5ed85485
No related branches found
No related tags found
1 merge request!368Move the Unicorn wrapper into a separate script
Loading
Loading
@@ -17,17 +17,8 @@
 
name "gitlab-scripts"
 
dependency "rsync"
# Help omnibus-ruby to cache the build product of this software. This is a
# workaround for the deprecation of `always_build true`. What happens now is
# that we build only if the contents of the specified directory have changed
# according to git.
version `git ls-tree HEAD -- files/gitlab-scripts | awk '{ print $3 }'`
source :path => File.expand_path("files/gitlab-scripts", Omnibus::Config.project_root)
 
build do
command "mkdir -p #{install_dir}/embedded/bin"
command "#{install_dir}/embedded/bin/rsync --delete -a ./ #{install_dir}/embedded/bin/"
copy "*", "#{install_dir}/embedded/bin/"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment