diff --git a/scripts/.fonctions b/scripts/.fonctions index eebc7be..8aa99a8 100644 --- a/scripts/.fonctions +++ b/scripts/.fonctions @@ -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. diff --git a/scripts/install b/scripts/install index b5d7d6a..3d33169 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================