From c8e55cd407ad536ac8463e6ad100d9faf783c619 Mon Sep 17 00:00:00 2001 From: Markus Heck <51326311+Glutamat42@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:37:47 +0200 Subject: [PATCH] Update install_plugins.php output log up moodle upgrade --- opt/adler/moodle/adler_setup/install_plugins.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opt/adler/moodle/adler_setup/install_plugins.php b/opt/adler/moodle/adler_setup/install_plugins.php index 49971d6..b91c409 100644 --- a/opt/adler/moodle/adler_setup/install_plugins.php +++ b/opt/adler/moodle/adler_setup/install_plugins.php @@ -115,9 +115,9 @@ function get_plugin_config() { // upgrade moodle installation cli_writeln("Upgrading moodle installation..."); -$cmd = "php {$CFG->dirroot}/admin/cli/upgrade.php --non-interactive --allow-unstable"; +$cmd = "php {$CFG->dirroot}/admin/cli/upgrade.php --non-interactive --allow-unstable 2>&1"; cli_writeln("Executing: $cmd"); -exec($cmd, $blub, $result_code); +passthru($cmd, $result_code); if ($result_code != 0) { cli_error('command execution failed'); }