Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions install/cli-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,13 @@ public function migrationAndSeed()
$systemSettings[] = ['setting_name' => 'auto_template_logic', 'setting_value' => 1];
$systemSettings[] = ['setting_name' => 'emailsender', 'setting_value' => $this->cmsAdminEmail];
$systemSettings[] = ['setting_name' => 'fe_editor_lang', 'setting_value' => $this->language];
// The web installer writes these two at installLevel 4
// (install/src/controllers/install.php); this path never reached them,
// so a CLI-installed site had no manager_theme and the manager built
// its stylesheet URL as media/style//style.css - a 404, leaving the
// whole manager unstyled.
$systemSettings[] = ['setting_name' => 'manager_theme', 'setting_value' => 'default'];
$systemSettings[] = ['setting_name' => 'site_id', 'setting_value' => uniqid('')];
\EvolutionCMS\Models\SystemSetting::insert($systemSettings);
// Apply core-only migrations (core/database/migrations) not present in the
// install/stubs chain, e.g. the system task tables. Runs after seeding so the
Expand Down