Fix: Mailbox Stats über Dovecot mit config/mailpool.php

main
boban 2025-10-25 13:23:46 +02:00
parent a9609d358b
commit 2e40e109a3
1 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,17 @@ class UpdateCard extends Component
private const VERSION_FILE_RAW = '/var/lib/mailwolt/version_raw'; // original ("v1.0.25" o.ä.)
private const BUILD_INFO = '/etc/mailwolt/build.info'; // Fallback
public function mount(): void
{
$this->reloadVersionsAndStatus();
$this->recompute();
// falls ein Update bereits läuft (State-Datei existiert), gleich “running” zeigen
if ($this->running) {
$this->state = 'running';
}
}
protected function reloadVersionsAndStatus(): void
{
$this->current = $this->readCurrentVersion();