diff --git a/scripts/install b/scripts/install index 498ca15..ca2a6ef 100644 --- a/scripts/install +++ b/scripts/install @@ -103,7 +103,9 @@ sudo /usr/bin/php -q ./bin/install-jsdeps.sh popd # Change owner final_path directory -sudo chown -R $app: "${final_path}" +sudo chown -R root: "${final_path}" +echo $final_path +sudo chown -R $app: "${final_path}/temp/" "${final_path}/logs/" # Modify Nginx configuration file and copy it to Nginx conf directory ynh_nginx_config diff --git a/scripts/upgrade b/scripts/upgrade index 66f7a74..9c565a0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -126,7 +126,8 @@ sudo /usr/bin/php -q ./bin/install-jsdeps.sh popd # Owner user app -sudo chown -R $app: "${final_path}" +sudo chown -R root: "${final_path}" +sudo chown -R $app: "${final_path}/temp/" "${final_path}/logs/" # Modify Nginx configuration file and copy it to Nginx conf directory ynh_nginx_config