From a22e9cb946f9d636bb8154fd8504636d5c73d03a Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Mon, 5 Feb 2024 00:23:44 +0100 Subject: [PATCH] temp - disable notifications on installation --- app/Jobs/Installation/InstallUfw.php | 2 +- app/ServerTypes/Regular.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Installation/InstallUfw.php b/app/Jobs/Installation/InstallUfw.php index a038671..67e5dbd 100755 --- a/app/Jobs/Installation/InstallUfw.php +++ b/app/Jobs/Installation/InstallUfw.php @@ -27,7 +27,7 @@ public function handle(): void $ssh = $this->service->server->ssh(); $ssh->exec(new InstallUfwCommand(), 'install-ufw'); $status = $ssh->exec(new ServiceStatusCommand($this->service->unit), 'ufw-status'); - // $this->service->validateInstall($status); + $this->service->validateInstall($status); $this->service->update([ 'status' => ServiceStatus::READY, ]); diff --git a/app/ServerTypes/Regular.php b/app/ServerTypes/Regular.php index 9b07815..c524275 100755 --- a/app/ServerTypes/Regular.php +++ b/app/ServerTypes/Regular.php @@ -91,7 +91,7 @@ public function install(): void 'server' => $this->server, ]) ); - Notifier::send($this->server, new ServerInstallationSucceed($this->server)); + // Notifier::send($this->server, new ServerInstallationSucceed($this->server)); }; Bus::chain($jobs)