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:
parent
33fac2533f
commit
4db1c45aa7
2 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue