diff --git a/app/Livewire/Ui/Security/ClamavManager.php b/app/Livewire/Ui/Security/ClamavManager.php index 01547f8..87d18b9 100644 --- a/app/Livewire/Ui/Security/ClamavManager.php +++ b/app/Livewire/Ui/Security/ClamavManager.php @@ -10,7 +10,6 @@ use Livewire\Component; #[Title('Virenschutz · Mailwolt')] class ClamavManager extends Component { - public bool $installed = false; public bool $running = false; public bool $enabled = false; public string $dbDate = '—'; @@ -18,7 +17,6 @@ class ClamavManager extends Component public ?int $ramMb = null; public string $lastError = ''; public string $lastSuccess = ''; - public bool $installing = false; public bool $starting = false; public int $startSecs = 0; @@ -52,26 +50,10 @@ class ClamavManager extends Component $this->lastSuccess = ''; $this->running = $this->serviceActive(); $this->enabled = $this->serviceEnabled(); - $this->installed = $this->isInstalled(); $this->ramMb = $this->running ? $this->readRamMb() : null; [$this->dbDate, $this->dbVersion] = $this->readDbInfo(); } - public function install(): void - { - $this->installing = true; - $out = []; - @exec('sudo -n /usr/local/sbin/mailwolt-clamav install 2>&1', $out, $rc); - $this->installing = false; - if ($rc !== 0) { - $this->lastError = implode(' ', $out) ?: 'Installation fehlgeschlagen.'; - } else { - $this->dispatch('toast', type: 'success', badge: 'ClamAV', - title: 'Installiert', text: 'ClamAV wurde installiert. Sie können ihn jetzt aktivieren.'); - } - $this->refresh(); - } - public function enable(): void { $this->lastError = ''; diff --git a/resources/views/livewire/ui/security/clamav-manager.blade.php b/resources/views/livewire/ui/security/clamav-manager.blade.php index a34ecde..8e95c6a 100644 --- a/resources/views/livewire/ui/security/clamav-manager.blade.php +++ b/resources/views/livewire/ui/security/clamav-manager.blade.php @@ -47,26 +47,6 @@
clamav clamav-daemon fehlt.