Fix: Mailbox Stats über Dovecot mit config/mailpool.php
parent
a9609d358b
commit
2e40e109a3
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue