check.rb 431 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer
  3. class Unit
  4. module Import
  5. module Common
  6. module SystemInitDone
  7. class Check < Sequencer::Unit::Base
  8. def process
  9. return if !Setting.get('system_init_done')
  10. raise 'System is already system_init_done!'
  11. end
  12. end
  13. end
  14. end
  15. end
  16. end
  17. end