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

Droit www-data après l'install + Suppression de source.zip

This commit is contained in:
magikcypress 2017-03-04 01:26:37 +01:00
parent 33fac2533f
commit 4db1c45aa7
2 changed files with 7 additions and 2 deletions

View file

@ -69,6 +69,7 @@ SETUP_SOURCE () { # Télécharge la source, décompresse et copie dans $final_pa
sudo rm Install_PrestaShop.html index.php
sudo unzip prestashop.zip
sudo rm prestashop.zip
sudo rm source.zip
}
POOL_FPM () { # Créer le fichier de configuration du pool php-fpm et le configure.

View file

@ -90,10 +90,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
POOL_FPM
#=================================================
# Crée le repertoire de destination et check les permissions
# Crée le repertoire de destination
#=================================================
sudo mkdir "$final_path"
sudo chown -R www-data: $final_path
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -121,6 +120,11 @@ sudo php index_cli.php install \
--prefix=_ps_
popd
#=================================================
# check les permissions
#=================================================
sudo chown -R www-data: $final_path
#=================================================
# Set /etc/hosts
#=================================================