From 9d9edf6820d76394d4ebf024eefeea6ddb8cc82c Mon Sep 17 00:00:00 2001 From: magikcypress Date: Tue, 11 Jul 2017 15:30:30 +0200 Subject: [PATCH] [fix] ownership root instead user app --- scripts/install | 4 +++- scripts/upgrade | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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