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'); }