summaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
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