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