diff --git a/app/Livewire/Setup/Wizard.php b/app/Livewire/Setup/Wizard.php index 6bb16d8..c5a4b60 100644 --- a/app/Livewire/Setup/Wizard.php +++ b/app/Livewire/Setup/Wizard.php @@ -152,7 +152,7 @@ class Wizard extends Component file_put_contents(self::STATE_DIR . "/{$k}", 'pending'); } - $ssl = (!$this->skipSsl && app()->isProduction()) ? 1 : 0; + $ssl = $this->skipSsl ? 0 : 1; $artisan = base_path('artisan'); $cmd = sprintf( 'nohup php %s mailwolt:wizard-domains --ui=%s --mail=%s --webmail=%s --ssl=%d > /dev/null 2>&1 &', @@ -192,7 +192,7 @@ class Wizard extends Component $this->domainStatus = ['ui' => 'pending', 'mail' => 'pending', 'webmail' => 'pending']; $this->setupDone = false; - $ssl = (!$this->skipSsl && app()->isProduction()) ? 1 : 0; + $ssl = $this->skipSsl ? 0 : 1; $artisan = base_path('artisan'); $cmd = sprintf( 'nohup php %s mailwolt:wizard-domains --ui=%s --mail=%s --webmail=%s --ssl=%d > /dev/null 2>&1 &',