summaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-06-29 13:58:20 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-06-29 13:58:20 -0400
commit18b4d39ac7172cb02cec63e7bf1cc21807a9b3f0 (patch)
tree810dd76a8b3bea1048e5951cefd4d1eeee5aaefd /bin/check
parent5a6d71d143a6ea5f9747b25304aafa902ed381d0 (diff)
downloadgitlab-shell-shards.tar.gz
Refactor repository paths handling to allow multiple git mount pointsshards
Diffstat (limited to 'bin/check')
-rwxr-xr-xbin/check17
1 files changed, 7 insertions, 10 deletions
diff --git a/bin/check b/bin/check
index 7aa1fe4..363cb6a 100755
--- a/bin/check
+++ b/bin/check
@@ -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