diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-06-14 11:18:25 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-14 11:18:25 +0000 |
commit | 5cf5680f9c8ce251570efce7dd4c348fb68efccf (patch) | |
tree | 511e1b3da7b9426dd4b09ca1cdd2ba01d5b419b4 /lib/system_check | |
parent | 434efdacd66e974a93cb2e94eee725a4a4d16f9f (diff) | |
download | gitlab-ce-5cf5680f9c8ce251570efce7dd4c348fb68efccf.tar.gz |
Deny repository disk access in development and test
Diffstat (limited to 'lib/system_check')
-rw-r--r-- | lib/system_check/orphans/repository_check.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/system_check/orphans/repository_check.rb b/lib/system_check/orphans/repository_check.rb index 5ef0b93ad08..2695c658874 100644 --- a/lib/system_check/orphans/repository_check.rb +++ b/lib/system_check/orphans/repository_check.rb @@ -5,16 +5,18 @@ module SystemCheck attr_accessor :orphans def multi_check - Gitlab.config.repositories.storages.each do |storage_name, repository_storage| - storage_path = repository_storage.legacy_disk_path + Gitlab::GitalyClient::StorageSettings.allow_disk_access do + Gitlab.config.repositories.storages.each do |storage_name, repository_storage| + storage_path = repository_storage.legacy_disk_path - $stdout.puts - $stdout.puts "* Storage: #{storage_name} (#{storage_path})".color(:yellow) + $stdout.puts + $stdout.puts "* Storage: #{storage_name} (#{storage_path})".color(:yellow) - repositories = disk_repositories(storage_path) - orphans = (repositories - fetch_repositories(storage_name)) + repositories = disk_repositories(storage_path) + orphans = (repositories - fetch_repositories(storage_name)) - print_orphans(orphans, storage_name) + print_orphans(orphans, storage_name) + end end end |