Skip to content

Commit

Permalink
send notification of autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Aug 17, 2023
1 parent d049aca commit 7e37068
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Actions/Server/UpdateCoolify.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ public function __invoke(bool $force)
}
$this->update();
}
send_internal_notification('InstanceAutoUpdateJob done on: ' . $this->server->ip . "(fqdn:{$this->server->fqdn})" . ' to version: ' . $this->latest_version . ' from version: ' . $this->current_version);
return;
} catch (\Exception $e) {
} catch (\Exception $th) {
ray('InstanceAutoUpdateJob failed');
ray($e->getMessage());
ray($th->getMessage());
send_internal_notification('InstanceAutoUpdateJob failed: ' . $th->getMessage());
return;
}
}
Expand Down

0 comments on commit 7e37068

Please sign in to comment.