From 684d50ef4d504d7a3956afcfc0fd1b36462ac64c Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Mon, 23 Aug 2021 23:42:08 +0200 Subject: [PATCH] improve permissions of finalpath --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 2b55d3d..f9b9f49 100755 --- a/scripts/install +++ b/scripts/install @@ -143,10 +143,13 @@ ynh_store_file_checksum --file="$conf_file" #================================================= # SECURE FILES AND DIRECTORIES #================================================= +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" # user mopidy needs permission to mkdir on final_path -chown -R root: $final_path -chown $app: $final_path +#chown -R root: $final_path +#chown $app: $final_path #================================================= # INTEGRATE SERVICE IN YUNOHOST