Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-06-12 11:28:34 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-06-12 11:31:17 +0400
commit90bfe286a694e2af9de49dcb3b32360132249a48 (patch)
tree9a62753158be3b5d0834c15c5776b8cfe0541d03 /lib/tasks
parent9fd6c3d591fb56e50a9cdbbaac557383e3ef86a7 (diff)
Skip init script checks on omnibus-gitlab
Omnibus-gitlab does not use the init script.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/check.rake14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 00af8d10291..34116568e99 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -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)
@@ -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"
@@ -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