18 lines
945 B
Diff
18 lines
945 B
Diff
|
Index: matomo/plugins/CoreUpdater/Commands/Update.php
|
||
|
===================================================================
|
||
|
--- matomo.orig/plugins/CoreUpdater/Commands/Update.php
|
||
|
+++ matomo/plugins/CoreUpdater/Commands/Update.php
|
||
|
@@ -80,7 +80,12 @@ class Update extends ConsoleCommand
|
||
|
$this->writeSuccessMessage(Piwik::translate('CoreUpdater_DbUpgradeNotExecuted'));
|
||
|
}
|
||
|
|
||
|
+ // 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();
|
||
|
+ }
|
||
|
+
|
||
|
} catch (NoUpdatesFoundException $e) {
|
||
|
// Do not fail if no updates were found
|
||
|
$this->writeSuccessMessage($e->getMessage());
|