diff --git a/app/Livewire/Ui/System/InstallerPage.php b/app/Livewire/Ui/System/InstallerPage.php index 59cfc09..b0eca8e 100644 --- a/app/Livewire/Ui/System/InstallerPage.php +++ b/app/Livewire/Ui/System/InstallerPage.php @@ -106,6 +106,7 @@ class InstallerPage extends Component if ($this->rc === 0 && !$this->postActionsDone) { @shell_exec('nohup php /var/www/mailwolt/artisan health:collect >/dev/null 2>&1 &'); + @shell_exec('nohup php /var/www/mailwolt/artisan db:seed --class="Database\\\\Seeders\\\\SystemDomainSeeder" --force >/dev/null 2>&1 &'); $this->postActionsDone = true; $this->dispatch('toast', type: 'done', badge: 'Installer', diff --git a/app/Livewire/Ui/System/SettingsForm.php b/app/Livewire/Ui/System/SettingsForm.php index 4d8d345..24ea737 100644 --- a/app/Livewire/Ui/System/SettingsForm.php +++ b/app/Livewire/Ui/System/SettingsForm.php @@ -199,25 +199,6 @@ class SettingsForm extends Component $this->applyDomains(false); } - // System-Domain (sysmail.) provisionieren, falls noch nicht vorhanden - $platformBase = config('mailpool.platform_zone', env('BASE_DOMAIN', '')); - if ($platformBase && $platformBase !== 'example.com') { - $mtaSub = strtolower(env('MTA_SUB', 'mx') ?: 'mx'); - $systemSub = strtolower(config('mailpool.platform_system_zone', 'sysmail')); - $serverFqdn = strtolower("{$mtaSub}.{$platformBase}"); - $systemFqdn = strtolower("{$systemSub}.{$serverFqdn}"); - if (!\App\Models\Domain::where('domain', $systemFqdn)->exists()) { - try { - Artisan::call('db:seed', [ - '--class' => 'Database\\Seeders\\SystemDomainSeeder', - '--force' => true, - ]); - } catch (\Throwable $e) { - \Illuminate\Support\Facades\Log::error('SystemDomainSeeder failed', ['error' => $e->getMessage()]); - } - } - } - $this->loadSslStatus(); $this->dispatch('toast', type: 'done', badge: 'Domains',