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