2018-11-27 19:08:31 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module SystemCheck
|
|
|
|
module RakeTask
|
|
|
|
# Used by gitlab:app:check rake task
|
|
|
|
module AppTask
|
|
|
|
extend RakeTaskHelpers
|
|
|
|
|
|
|
|
def self.name
|
|
|
|
'GitLab App'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.checks
|
|
|
|
[
|
|
|
|
SystemCheck::App::DatabaseConfigExistsCheck,
|
|
|
|
SystemCheck::App::MigrationsAreUpCheck,
|
|
|
|
SystemCheck::App::OrphanedGroupMembersCheck,
|
|
|
|
SystemCheck::App::GitlabConfigExistsCheck,
|
|
|
|
SystemCheck::App::GitlabConfigUpToDateCheck,
|
|
|
|
SystemCheck::App::LogWritableCheck,
|
|
|
|
SystemCheck::App::TmpWritableCheck,
|
|
|
|
SystemCheck::App::UploadsDirectoryExistsCheck,
|
|
|
|
SystemCheck::App::UploadsPathPermissionCheck,
|
|
|
|
SystemCheck::App::UploadsPathTmpPermissionCheck,
|
2021-10-28 11:09:42 -04:00
|
|
|
SystemCheck::App::SystemdUnitFilesOrInitScriptExistCheck,
|
|
|
|
SystemCheck::App::SystemdUnitFilesOrInitScriptUpToDateCheck,
|
2018-11-27 19:08:31 -05:00
|
|
|
SystemCheck::App::ProjectsHaveNamespaceCheck,
|
|
|
|
SystemCheck::App::RedisVersionCheck,
|
|
|
|
SystemCheck::App::RubyVersionCheck,
|
|
|
|
SystemCheck::App::GitUserDefaultSSHConfigCheck,
|
2019-08-27 00:33:48 -04:00
|
|
|
SystemCheck::App::ActiveUsersCheck,
|
2020-05-11 17:09:40 -04:00
|
|
|
SystemCheck::App::AuthorizedKeysPermissionCheck,
|
|
|
|
SystemCheck::App::HashedStorageEnabledCheck,
|
2020-06-16 23:08:38 -04:00
|
|
|
SystemCheck::App::HashedStorageAllProjectsCheck
|
2018-11-27 19:08:31 -05:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
SystemCheck::RakeTask::AppTask.prepend_mod_with('SystemCheck::RakeTask::AppTask')
|