Updated gitlab:check task
This commit is contained in:
parent
757c7a5291
commit
4c8ac320dd
1 changed files with 5 additions and 4 deletions
|
@ -90,7 +90,7 @@ namespace :gitlab do
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_gitlab_config_not_outdated
|
def check_gitlab_config_not_outdated
|
||||||
print "GitLab config not outdated? ... "
|
print "GitLab config outdated? ... "
|
||||||
|
|
||||||
gitlab_config_file = Rails.root.join("config", "gitlab.yml")
|
gitlab_config_file = Rails.root.join("config", "gitlab.yml")
|
||||||
unless File.exists?(gitlab_config_file)
|
unless File.exists?(gitlab_config_file)
|
||||||
|
@ -98,11 +98,12 @@ namespace :gitlab do
|
||||||
end
|
end
|
||||||
|
|
||||||
# omniauth or ldap could have been deleted from the file
|
# omniauth or ldap could have been deleted from the file
|
||||||
if File.read(gitlab_config_file) =~ /^web:/
|
unless Gitlab.config.pre_40_config
|
||||||
puts "yes".green
|
puts "no".green
|
||||||
else
|
else
|
||||||
puts "no".red
|
puts "yes".red
|
||||||
try_fixing_it(
|
try_fixing_it(
|
||||||
|
"Backup your config/gitlab.yml",
|
||||||
"Copy config/gitlab.yml.example to config/gitlab.yml",
|
"Copy config/gitlab.yml.example to config/gitlab.yml",
|
||||||
"Update config/gitlab.yml to match your setup"
|
"Update config/gitlab.yml to match your setup"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue