X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdoMaintenance.php;h=1f1a4c721b638513fd4f8b6c896b45774c89945a;hb=cba0fb1c1576324e87b27b6d31ee4359195025c8;hp=f3fb32ce62348594ba3108334d0872c72e9acb44;hpb=0c2687f44eb0e8c7f480b7303f89056682ba0bfb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index f3fb32ce62..1f1a4c721b 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -91,7 +91,7 @@ $maintenance->checkRequiredExtensions(); $maintenance->setAgentAndTriggers(); // Do the work -$maintenance->execute(); +$success = $maintenance->execute(); // Potentially debug globals $maintenance->globals(); @@ -111,3 +111,8 @@ if ( isset( $lbFactory ) ) { $lbFactory->commitMasterChanges( 'doMaintenance' ); $lbFactory->shutdown( $lbFactory::SHUTDOWN_NO_CHRONPROT ); } + +// Exit with an error status if execute() returned false +if ( $success === false ) { + exit( 1 ); +}