fix cli-updater

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-01-08 13:25:14 +01:00
parent 5688690eb8
commit 1d2f5a693c

View File

@@ -140,7 +140,7 @@ final class UpdateCommand extends CliCommand
if ($yestoall || $helper->ask($input, $output, $question)) {
// do extract
$output->writeln('Extracting...');
$auex = AutoUpdate::extractZip($audl);
$auex = AutoUpdate::extractZip(Froxlor::getInstallDir() . '/updates/' . $audl);
if ($auex == 0) {
$output->writeln("<info>Froxlor files updated successfully.</>");
$result = self::SUCCESS;
@@ -188,7 +188,7 @@ final class UpdateCommand extends CliCommand
include_once Froxlor::getInstallDir() . '/lib/tables.inc.php';
define('_CRON_UPDATE', 1);
ob_start([
'this',
$this,
'cleanUpdateOutput'
]);
include_once Froxlor::getInstallDir() . '/install/updatesql.php';