From 9b5c752380a1c1bf6c3023194a909a1f07e97603 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 5 May 2025 09:42:46 +0200 Subject: [PATCH] run database-updates in a new process when using CLI updater to use latest extracted files Signed-off-by: Michael Kaufmann --- lib/Froxlor/Cli/UpdateCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Froxlor/Cli/UpdateCommand.php b/lib/Froxlor/Cli/UpdateCommand.php index 566cd7a6..218e8f9a 100644 --- a/lib/Froxlor/Cli/UpdateCommand.php +++ b/lib/Froxlor/Cli/UpdateCommand.php @@ -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;