20230904123822_set_idoit_ssl_default.rb 386 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SetIdoitSSLDefault < 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('idoit_config')
  7. return if config.blank?
  8. Setting.set('idoit_config', config.merge('verify_ssl' => false))
  9. end
  10. end