20230905073448_set_gitlab_ssl_default.rb 388 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SetGitLabSSLDefault < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. config = Setting.get('gitlab_config')
  7. return if config.blank?
  8. Setting.set('gitlab_config', config.merge('verify_ssl' => true))
  9. end
  10. end