Index: branches/5.0.x/core/units/sections/site_config_eh.php =================================================================== diff -u -N -r12734 -r13355 --- branches/5.0.x/core/units/sections/site_config_eh.php (.../site_config_eh.php) (revision 12734) +++ branches/5.0.x/core/units/sections/site_config_eh.php (.../site_config_eh.php) (revision 13355) @@ -1,6 +1,6 @@ MasterEvent->Prefix . '.php'; if (file_exists(SYSTEM_PRESET_PATH . DIRECTORY_SEPARATOR . $prefix_file)) { + if ( $this->Application->getUnitOption($event->MasterEvent->Prefix, 'SiteConfigProcessed') ) { + // don't apply same site config twice during installation + return ; + } + require SYSTEM_PRESET_PATH . DIRECTORY_SEPARATOR . $prefix_file; } else { @@ -61,5 +66,6 @@ // apply changes $this->_helper->processConfigChanges($event->MasterEvent->Prefix, $changes); + $this->Application->setUnitOption($event->MasterEvent->Prefix, 'SiteConfigProcessed', true); } } \ No newline at end of file