send notification of autoupdate

This commit is contained in:
Andras Bacsai 2023-08-17 16:26:55 +02:00
parent d049acad70
commit 7e37068fc0

View File

@ -42,10 +42,12 @@ public function __invoke(bool $force)
} }
$this->update(); $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; return;
} catch (\Exception $e) { } catch (\Exception $th) {
ray('InstanceAutoUpdateJob failed'); ray('InstanceAutoUpdateJob failed');
ray($e->getMessage()); ray($th->getMessage());
send_internal_notification('InstanceAutoUpdateJob failed: ' . $th->getMessage());
return; return;
} }
} }