diff --git a/app/Livewire/Ui/Security/ClamavManager.php b/app/Livewire/Ui/Security/ClamavManager.php index 074d3ca..ecdc4aa 100644 --- a/app/Livewire/Ui/Security/ClamavManager.php +++ b/app/Livewire/Ui/Security/ClamavManager.php @@ -27,10 +27,9 @@ class ClamavManager extends Component public function refresh(): void { $this->lastError = ''; - // serviceKnown() prüft ob systemd die Unit kennt (active, inactive, disabled → installiert) $this->running = $this->serviceActive(); $this->enabled = $this->serviceEnabled(); - $this->installed = $this->running || $this->serviceKnown(); + $this->installed = true; // Mailwolt setzt ClamAV voraus; Fehler kommen vom Wrapper $this->ramMb = $this->running ? $this->readRamMb() : null; [$this->dbDate, $this->dbVersion] = $this->readDbInfo(); } @@ -89,16 +88,6 @@ class ClamavManager extends Component $this->refresh(); } - private function serviceKnown(): bool - { - $out = []; - @exec('systemctl list-unit-files clamav-daemon.service 2>/dev/null', $out); - foreach ($out as $line) { - if (str_contains($line, 'clamav-daemon')) return true; - } - return false; - } - private function serviceActive(): bool { $exit = null;