From 9d83186382ba04472ec7b73e6db29d71bf01133a Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Tue, 25 Jul 2017 14:23:58 +0200 Subject: [PATCH] Fix files ownership --- scripts/install | 5 +++-- scripts/upgrade | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 373d743..2dfa949 100644 --- a/scripts/install +++ b/scripts/install @@ -147,8 +147,9 @@ ynh_replace_string "__URL__" "$domain$path_url" "$final_path/config.js" # SET FILES OWNERSHIP #================================================= -chown -R root: $final_path -chown -R $app: $final_path/datastore +sudo chown -R root: $final_path +sudo mkdir $final_path/datastore $final_path/pins $final_path/blob $final_path/blobstage +sudo chown -R $app: $final_path/datastore $final_path/pins $final_path/blob $final_path/blobstage #================================================= # INSTALL MODULES FOR CRYPTPAD diff --git a/scripts/upgrade b/scripts/upgrade index 5d50a25..74a6f93 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -124,8 +124,8 @@ ynh_replace_string "__PORT__" "$port" "$final_path/config.js" # SET FILES OWNERSHIP #================================================= -chown -R root: $final_path -chown -R $app: $final_path/datastore +sudo chown -R root: $final_path +sudo chown -R $app: $final_path/datastore $final_path/pins $final_path/blob $final_path/blobstage #================================================= # INSTALL MODULES FOR CRYPTPAD