2021-05-17 11:35:39 +02:00
|
|
|
Index: matomo/plugins/CoreUpdater/Commands/Update.php
|
|
|
|
===================================================================
|
|
|
|
--- matomo.orig/plugins/CoreUpdater/Commands/Update.php
|
|
|
|
+++ matomo/plugins/CoreUpdater/Commands/Update.php
|
|
|
|
@@ -79,8 +79,11 @@ class Update extends ConsoleCommand
|
|
|
|
$this->writeSuccessMessage($output, array(Piwik::translate('CoreUpdater_DbUpgradeNotExecuted')));
|
|
|
|
}
|
2020-11-24 18:16:32 +01:00
|
|
|
|
2021-05-17 11:35:39 +02:00
|
|
|
+ // Only show if autoupdate is enabled. Don't show if update through distribution package update.
|
|
|
|
+ $enableAutoUpdate = (bool) Config::getInstance()->General['enable_auto_update'];
|
|
|
|
+ if ($enableAutoUpdate === true){
|
|
|
|
$this->writeAlertMessageWhenCommandExecutedWithUnexpectedUser($output);
|
|
|
|
-
|
|
|
|
+ }
|
2020-11-24 18:16:32 +01:00
|
|
|
|
2021-05-17 11:35:39 +02:00
|
|
|
} catch (NoUpdatesFoundException $e) {
|
|
|
|
// Do not fail if no updates were found
|