From 2c82555235c17e8808c2499a82313de8ada18264 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 23:27:52 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20SystemDomainSeeder=20l=C3=A4uft=20beim?= =?UTF-8?q?=20Installer-Abschluss,=20nicht=20in=20den=20Settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sysmail. wird jetzt automatisch beim Ende einer erfolgreichen Installation angelegt – nicht nachträglich beim Speichern der Domain-Einstellungen. Co-Authored-By: Claude Sonnet 4.6 --- app/Livewire/Ui/System/InstallerPage.php | 1 + app/Livewire/Ui/System/SettingsForm.php | 19 ------------------- 2 files changed, 1 insertion(+), 19 deletions(-) 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',