Skip to content
Snippets Groups Projects
Commit 11e1c013 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge branch 'detect_omnibus' into 'master'

Detect omnibus-gitlab in `rake gitlab:check`
parents 630be84a 90bfe286
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,6 +31,7 @@ v 7.0.0
- Add notice about huge push over http to unicorn config
- File action in satellites uses default 30 seconds timeout instead of old 10 seconds one
- Overall performance improvements
- Skip init script check on omnibus-gitlab
 
v 6.9.2
- Revert the commit that broke the LDAP user filter
Loading
Loading
Loading
Loading
@@ -123,6 +123,11 @@ namespace :gitlab do
def check_init_script_exists
print "Init script exists? ... "
 
if omnibus_gitlab?
puts 'skipped (omnibus-gitlab has no init script)'.magenta
return
end
script_path = "/etc/init.d/gitlab"
 
if File.exists?(script_path)
Loading
Loading
@@ -142,6 +147,11 @@ namespace :gitlab do
def check_init_script_up_to_date
print "Init script up-to-date? ... "
 
if omnibus_gitlab?
puts 'skipped (omnibus-gitlab has no init script)'.magenta
return
end
recipe_path = Rails.root.join("lib/support/init.d/", "gitlab")
script_path = "/etc/init.d/gitlab"
 
Loading
Loading
@@ -823,4 +833,8 @@ namespace :gitlab do
fix_and_rerun
end
end
def omnibus_gitlab?
Dir.pwd == '/opt/gitlab/embedded/service/gitlab-rails'
end
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