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}