summaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
Diffstat (limited to 'bin/check')
-rwxr-xr-xbin/check8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/check b/bin/check
index 363cb6a..d34a2d0 100755
--- a/bin/check
+++ b/bin/check
@@ -19,14 +19,12 @@ rescue GitlabNet::ApiUnreachableError
abort "FAILED: Failed to connect to internal API"
end
-
-puts "\nCheck directories and files: "
-
config = GitlabConfig.new
abort("ERROR: missing option in config.yml") unless config.auth_file
-print "\t#{config.auth_file}: "
-if File.exists?(config.auth_file)
+
+print "\nAccess to #{config.auth_file}: "
+if system(File.dirname(__FILE__) + '/gitlab-keys', 'check-permissions')
print 'OK'
else
abort "FAILED"