diff options
Diffstat (limited to 'bin/check')
-rwxr-xr-x | bin/check | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -23,18 +23,15 @@ end puts "\nCheck directories and files: " config = GitlabConfig.new -dirs = [config.repos_path, config.auth_file] -dirs.each do |dir| - abort("ERROR: missing option in config.yml") unless dir - print "\t#{dir}: " - if File.exists?(dir) - print 'OK' - else - abort "FAILED" - end - puts "\n" +abort("ERROR: missing option in config.yml") unless config.auth_file +print "\t#{config.auth_file}: " +if File.exists?(config.auth_file) + print 'OK' +else + abort "FAILED" end +puts "\n" print "Send ping to redis server: " abort unless GitlabNet.new.redis_client.ping |