diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-12-09 20:48:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 20:48:16 +0300 |
commit | 605a52a29ec0fac35be55c80eef2c952ef015516 (patch) | |
tree | 413b5892f7d4941b22b5f435322b18b332163d11 | |
parent | ddb0aa9b5357176757f67698101328c72c6b58cb (diff) |
Ensure update to 4.6.2 removes some files (#18473)
-rw-r--r-- | core/Updates/4.6.2-rc2.php | 31 | ||||
-rw-r--r-- | core/Version.php | 2 |
2 files changed, 32 insertions, 1 deletions
diff --git a/core/Updates/4.6.2-rc2.php b/core/Updates/4.6.2-rc2.php new file mode 100644 index 0000000000..26aec321c3 --- /dev/null +++ b/core/Updates/4.6.2-rc2.php @@ -0,0 +1,31 @@ +<?php +/** + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ + +namespace Piwik\Updates; + +use Piwik\Filesystem; +use Piwik\Updater; +use Piwik\Updates as PiwikUpdates; + +/** + * Update for version 4.6.2-rc2. + */ +class Updates_4_6_2_rc2 extends PiwikUpdates +{ + /** + * @param Updater $updater + */ + public function doUpdate(Updater $updater) + { + Filesystem::unlinkRecursive(PIWIK_INCLUDE_PATH . '/misc/composer', true); + @unlink(PIWIK_INCLUDE_PATH . '/node_modules/iframe-resizer/.eslintrc'); + @unlink(PIWIK_INCLUDE_PATH . '/node_modules/jquery.dotdotdot/.npmignore'); + @unlink(PIWIK_INCLUDE_PATH . '/node_modules/ng-dialog/.eslintrc'); + } +} diff --git a/core/Version.php b/core/Version.php index ae50cca244..69e71d0f0d 100644 --- a/core/Version.php +++ b/core/Version.php @@ -20,7 +20,7 @@ final class Version * The current Matomo version. * @var string */ - const VERSION = '4.6.2-rc1'; + const VERSION = '4.6.2-rc2'; const MAJOR_VERSION = 4; |