From 6f02b29bb8294eadf5cfe2abfbb358041f0229b6 Mon Sep 17 00:00:00 2001 From: "Sebastian G. Marinescu" Date: Wed, 25 Sep 2024 12:25:11 +0200 Subject: [PATCH] Update upgrade.md - Add newest 8.x version as example - Better unzip and copy example - Remove install/module from list of folders to delete (not sure, but later in the text, it seems as if "install" is actually needed...) --- basics/keeping-up-to-date/upgrade.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/basics/keeping-up-to-date/upgrade.md b/basics/keeping-up-to-date/upgrade.md index f9695cb71e..d3c199cd4c 100644 --- a/basics/keeping-up-to-date/upgrade.md +++ b/basics/keeping-up-to-date/upgrade.md @@ -38,10 +38,10 @@ mechanism from the upgrade assistant module. The first step is to download the latest version on https://github.com/PrestaShop/PrestaShop/releases. -Download can also be done in command line, as done here with the version 8.0.2: +Download can also be done in command line, as done here with the version 8.1.7: ```bash -wget -O prestashop-upgrade.zip https://github.com/PrestaShop/PrestaShop/releases/download/8.0.2/prestashop_8.0.2.zip +wget -O prestashop-upgrade.zip https://github.com/PrestaShop/PrestaShop/releases/download/8.1.7/prestashop_8.1.7.zip ``` ### Archive extraction @@ -53,7 +53,7 @@ Note starting from PrestaShop 1.7.0.0, the release package contains a zip file i On a Linux terminal, you can use the command \`unzip\`: ```bash -unzip prestashop-upgrade.zip && unzip prestashop.zip +unzip prestashop-upgrade.zip && unzip prestashop.zip -d upgrade ``` If asked to overwrite the index.php file, answer yes. @@ -67,8 +67,6 @@ Avoid overwrite the production resources (images, conf ...) with the default dat - prestashop.zip - img/ - override/ -- install/ -- modules/ {{% notice warning %}} All the other files present in the new release will overwrite the existing files. @@ -112,13 +110,13 @@ You will get warnings that files already exists in the destination folder. Choos On linux, the copy can be done in your terminal: ```bash -cp -R /* / +cp -rf /* / ``` Example: ```bash -cp -R ~/Downloads/prestashop/* /var/www/html/ +cp -rf ~/Downloads/upgrade/* /var/www/html/ ``` ### Database upgrade