Skip to content
Snippets Groups Projects
Commit 4c8ac320 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Updated gitlab:check task

parent 757c7a52
No related branches found
No related tags found
1 merge request!2247Reorganize settings
Loading
Loading
@@ -90,7 +90,7 @@ namespace :gitlab do
end
 
def check_gitlab_config_not_outdated
print "GitLab config not outdated? ... "
print "GitLab config outdated? ... "
 
gitlab_config_file = Rails.root.join("config", "gitlab.yml")
unless File.exists?(gitlab_config_file)
Loading
Loading
@@ -98,11 +98,12 @@ namespace :gitlab do
end
 
# omniauth or ldap could have been deleted from the file
if File.read(gitlab_config_file) =~ /^web:/
puts "yes".green
unless Gitlab.config.pre_40_config
puts "no".green
else
puts "no".red
puts "yes".red
try_fixing_it(
"Backup your config/gitlab.yml",
"Copy config/gitlab.yml.example to config/gitlab.yml",
"Update config/gitlab.yml to match your setup"
)
Loading
Loading
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