Move example data to an optional/add-on step
During installation, the installer shows a checkbox which asks whether you want to load sample data. Then:
- If you don't want sample data, it loads
sql/civicrm_data.mysql
. - If you do want sample data, it loads
sql/civicrm_generated.mysql
.
This has some consequences:
- You must choose whether to load sample data during installation. This is presented in the installer UI.
- The
civicrm_generated.mysql
takes extra work to maintain (egbin/regen.sh
; the output of which is not merge-friendly).
The goal here would be to have one installation process -- which could be headless. Afterwards, you should have the option to enable create the sample data. This option may be specified as at same time as other install parameters (eg via arg) or perhaps via a separate command afterwards.