From 37ce42d3720f921a76ad89d8ceca1c0b9cb76066 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Mon, 17 Apr 2017 19:49:45 +0200 Subject: [PATCH] [fix] owner root root directory --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index edba86f..86dd0ad 100644 --- a/scripts/install +++ b/scripts/install @@ -34,7 +34,7 @@ ynh_system_user_create $app # Files owned by user specific can just read sudo find $final_path -type f | xargs sudo chmod 644 sudo find $final_path -type d | xargs sudo chmod 755 -sudo chown -R $app: $final_path +sudo chown -R root: $final_path # except for data and tmp subdir, where www-data must have write permissions sudo mkdir -p $final_path/{data,tmp} diff --git a/scripts/upgrade b/scripts/upgrade index 3e3286e..6d146b7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,7 +49,7 @@ extract_source $final_path # Files owned by root, www-data can just read sudo find $final_path -type f | xargs sudo chmod 644 sudo find $final_path -type d | xargs sudo chmod 755 -sudo chown -R $app: $final_path +sudo chown -R root: $final_path # except for data and tmp subdir, where www-data must have write permissions sudo mkdir -p $final_path/{data,tmp}