From a9ad26757bb425be457d1f3f5c73b7ffb4d0fd90 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 20:37:10 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20installed=20immer=20true=20=E2=80=93=20E?= =?UTF-8?q?nable/Disable=20immer=20sichtbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- app/Livewire/Ui/Security/ClamavManager.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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;