parent
2ed1d1cd36
commit
8790cffeb4
|
|
@ -52,9 +52,9 @@ class UpdateCard extends Component
|
|||
|
||||
if ($this->running) {
|
||||
$this->state = 'running';
|
||||
$this->dispatch('openModal', component: 'ui.system.update-modal');
|
||||
$this->dispatch('openModal', component: 'ui.system.modal.update-modal');
|
||||
}
|
||||
|
||||
|
||||
$this->recomputeUi();
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ class UpdateCard extends Component
|
|||
// evtl. alte Einträge aufräumen
|
||||
Cache::forget('mailwolt.update_available');
|
||||
Cache::put($this->cacheStartedAtKey, time(), now()->addHour());
|
||||
$this->dispatch('openModal', component: 'ui.system.update-modal');
|
||||
$this->dispatch('openModal', component: 'ui.system.modal.update-modal');
|
||||
// Wrapper starten (setzt /var/lib/mailwolt/update/{state,rc} und schreibt Versionen)
|
||||
@shell_exec('nohup sudo -n /usr/local/sbin/mailwolt-update >/dev/null 2>&1 &');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue