parent
8790cffeb4
commit
56e7453f8d
|
|
@ -48,13 +48,12 @@ class UpdateCard extends Component
|
||||||
$this->reloadVersionsAndStatus();
|
$this->reloadVersionsAndStatus();
|
||||||
$this->recompute();
|
$this->recompute();
|
||||||
$this->progressLine = '';
|
$this->progressLine = '';
|
||||||
// $this->progressLine = $this->tailUpdateLog();
|
|
||||||
|
|
||||||
if ($this->running) {
|
if ($this->running) {
|
||||||
$this->state = 'running';
|
$this->state = 'running';
|
||||||
$this->dispatch('openModal', component: 'ui.system.modal.update-modal');
|
$this->dispatch('openModal', component: 'ui.system.modal.update-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->recomputeUi();
|
$this->recomputeUi();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -71,7 +70,6 @@ class UpdateCard extends Component
|
||||||
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.modal.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 &');
|
@shell_exec('nohup sudo -n /usr/local/sbin/mailwolt-update >/dev/null 2>&1 &');
|
||||||
|
|
||||||
// Sofort ins Running gehen
|
// Sofort ins Running gehen
|
||||||
|
|
@ -88,7 +86,6 @@ class UpdateCard extends Component
|
||||||
|
|
||||||
public function pollUpdate(): void
|
public function pollUpdate(): void
|
||||||
{
|
{
|
||||||
// 1) aktuellen Wrapper-Status einlesen
|
|
||||||
$this->refreshLowLevelState();
|
$this->refreshLowLevelState();
|
||||||
|
|
||||||
if ($this->rc !== null) {
|
if ($this->rc !== null) {
|
||||||
|
|
@ -116,7 +113,6 @@ class UpdateCard extends Component
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->rc === 0 && !$this->postActionsDone) {
|
if ($this->rc === 0 && !$this->postActionsDone) {
|
||||||
// Dienste neu starten (asynchron)
|
|
||||||
// @shell_exec('nohup php /var/www/mailwolt/artisan mailwolt:restart-services >/dev/null 2>&1 &');
|
// @shell_exec('nohup php /var/www/mailwolt/artisan mailwolt:restart-services >/dev/null 2>&1 &');
|
||||||
@shell_exec('nohup php /var/www/mailwolt/artisan health:collect >/dev/null 2>&1 &');
|
@shell_exec('nohup php /var/www/mailwolt/artisan health:collect >/dev/null 2>&1 &');
|
||||||
@shell_exec('nohup php /var/www/mailwolt/artisan settings:sync >/dev/null 2>&1 &');
|
@shell_exec('nohup php /var/www/mailwolt/artisan settings:sync >/dev/null 2>&1 &');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue