1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/prestashop_ynh.git synced 2024-09-03 20:06:39 +02:00

Option sur unzip pour écrasement des fichiers si il existe deja, cas upgrade

This commit is contained in:
magikcypress 2017-03-24 16:33:40 +01:00
parent 50b201b7c7
commit 3d20bf8497
2 changed files with 4 additions and 1 deletions

View file

@ -97,7 +97,7 @@ SETUP_SOURCE () { # Télécharge la source, décompresse et copie dans $final_pa
pushd $final_path
sudo unzip source.zip
sudo rm Install_PrestaShop.html index.php
sudo unzip prestashop.zip
sudo unzip -o prestashop.zip
sudo rm prestashop.zip
sudo rm source.zip
}

View file

@ -30,6 +30,9 @@ final_path=/var/www/$app
SETUP_SOURCE
# Delete install directory after upgrade
rm -fr "$final_path/install"
db_name=$app
# Modify Nginx configuration file and copy it to Nginx conf directory