run database-updates in a new process when using CLI updater to use latest extracted files

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2025-05-05 09:42:46 +02:00
parent bab6c3da5b
commit 9b5c752380

View File

@@ -190,7 +190,8 @@ final class UpdateCommand extends CliCommand
$question = new ConfirmationQuestion('Update database? [no] ', false, '/^(y|j)/i');
if ($yestoall || $helper->ask($input, $output, $question)) {
$result = $this->runUpdate($output, true);
// run in separate process to ensure the use of newly unpacked files
passthru(Froxlor::getInstallDir() . '/bin/froxlor-cli froxlor:update -dA', $result);
}
} else {
$errmsg = 'error.autoupdate_' . $auex;