Skip to content

Commit

Permalink
Merge pull request #1157 from M0rgan01/fix-clean-config-file
Browse files Browse the repository at this point in the history
Clean update config file after update
  • Loading branch information
M0rgan01 authored Feb 14, 2025
2 parents 13ad9bc + 6d72e83 commit 5c4600f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/Task/Update/UpdateComplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

use Exception;
use PrestaShop\Module\AutoUpgrade\Analytics;
use PrestaShop\Module\AutoUpgrade\Parameters\UpgradeFileNames;
use PrestaShop\Module\AutoUpgrade\Task\AbstractTask;
use PrestaShop\Module\AutoUpgrade\Task\ExitCode;
use PrestaShop\Module\AutoUpgrade\Task\TaskName;
Expand Down Expand Up @@ -72,6 +73,9 @@ public function run(): int
$this->removeFile($latestPath);
}

// removing config files
$this->container->getFileStorage()->clean(UpgradeFileNames::UPDATE_CONFIG_FILENAME);

// removing temporary files
$this->container->getFileStorage()->cleanAllUpdateFiles();
$this->container->getAnalytics()->track('Upgrade Succeeded', Analytics::WITH_UPDATE_PROPERTIES);
Expand Down

0 comments on commit 5c4600f

Please sign in to comment.