2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
puts "Creating the default ApplicationSetting record.".color(:green)
|
2019-07-31 22:56:46 +05:30
|
|
|
ApplicationSetting.create_from_defaults
|
2019-07-07 11:18:12 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
# Details https://gitlab.com/gitlab-org/gitlab-foss/issues/46241
|
2019-07-07 11:18:12 +05:30
|
|
|
puts "Enable hashed storage for every new projects.".color(:green)
|
|
|
|
ApplicationSetting.current_without_cache.update!(hashed_storage_enabled: true)
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
puts "Generate CI JWT signing key".color(:green)
|
|
|
|
ApplicationSetting.current_without_cache.update!(ci_jwt_signing_key: OpenSSL::PKey::RSA.new(2048).to_pem)
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
print '.'
|